rust/tests/rustdoc/nul-error.rs
2024-06-24 11:08:41 +02:00

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() {}