rust/tests/rustdoc-ui/lints/no-crate-level-doc-lint.rs
2023-04-29 11:36:19 -05:00

7 lines
202 B
Rust

// error-pattern: no documentation found
// normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
#![deny(rustdoc::missing_crate_level_docs)]
//^~ NOTE defined here
pub fn foo() {}