mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
// check-pass
|
|
// compile-flags: -Z unstable-options --check
|
|
// normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
|
|
|
|
#![feature(rustdoc_missing_doc_code_examples)]
|
|
//~^ WARN
|
|
//~^^ WARN
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(rustdoc::all)]
|
|
|
|
pub fn foo() {}
|
|
//~^ WARN
|
|
//~^^ WARN
|