summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/lints/check.rs
blob: e389a81bb33cc93fae6a4591317d53b54c677ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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::missing_doc_code_examples)]
#![warn(rustdoc::all)]

pub fn foo() {}
//~^ WARN
//~^^ WARN