rust/tests/rustdoc-ui/lints/check.rs

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

16 lines
336 B
Rust
Raw Normal View History

2020-11-12 07:58:07 -06:00
// check-pass
// compile-flags: -Z unstable-options --check
// normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
2020-11-12 07:58:07 -06:00
#![feature(rustdoc_missing_doc_code_examples)]
2020-11-12 07:58:07 -06:00
//~^ WARN
//~^^ WARN
#![warn(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]
#![warn(rustdoc::all)]
2020-11-12 07:58:07 -06:00
pub fn foo() {}
//~^ WARN
//~^^ WARN