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)]
|
2022-12-30 19:09:19 -06:00
|
|
|
#![warn(rustdoc::missing_doc_code_examples)]
|
2021-03-05 08:50:20 -06:00
|
|
|
#![warn(rustdoc::all)]
|
2020-11-12 07:58:07 -06:00
|
|
|
|
|
|
|
pub fn foo() {}
|
|
|
|
//~^ WARN
|
|
|
|
//~^^ WARN
|