2020-11-12 07:58:07 -06:00
|
|
|
// check-pass
|
|
|
|
// compile-flags: -Z unstable-options --check
|
2021-05-04 22:36:33 -05:00
|
|
|
// normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
|
2020-11-12 07:58:07 -06:00
|
|
|
|
2022-09-12 13:10:35 -05:00
|
|
|
#![feature(rustdoc_missing_doc_code_examples)]
|
2020-11-12 07:58:07 -06:00
|
|
|
//~^ WARN
|
|
|
|
//~^^ WARN
|
2022-09-12 13:10:35 -05:00
|
|
|
|
|
|
|
#![warn(missing_docs)]
|
2021-03-05 08:50:20 -06:00
|
|
|
#![warn(rustdoc::all)]
|
2020-11-12 07:58:07 -06:00
|
|
|
|
|
|
|
pub fn foo() {}
|
|
|
|
//~^ WARN
|
|
|
|
//~^^ WARN
|