rust/tests/rustdoc/nul-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
175 B
Rust
Raw Normal View History

2017-08-05 21:54:48 +00:00
//@ build-aux-docs
//@ ignore-cross-compile
#![crate_name = "foo"]
2017-08-07 18:17:45 +00:00
// @has foo/fn.foo.html '//code' ''
2017-08-05 21:54:48 +00:00
#[doc = "Attempted to pass a string containing `\0`"]
pub fn foo() {}