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