rust/tests/rustdoc/nul-error.rs

9 lines
175 B
Rust

//@ build-aux-docs
//@ ignore-cross-compile
#![crate_name = "foo"]
// @has foo/fn.foo.html '//code' ''
#[doc = "Attempted to pass a string containing `\0`"]
pub fn foo() {}