summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/check.rs
blob: f70b033615139da5f708d95cfc9685caf4e0febc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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