about summary refs log tree commit diff
path: root/tests/rustdoc-ui/lints/check.rs
blob: 058c5d6c468f31e78945d632d5c1a9244cf6dbcc (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(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]
#![warn(rustdoc::all)]

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