mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
27 lines
616 B
Rust
27 lines
616 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Z unstable-options --check
|
|
//@ normalize-stderr: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
|
|
|
|
#![feature(rustdoc_missing_doc_code_examples)] //~ WARN no documentation found for this crate's top-level module
|
|
//~^ WARN
|
|
#![feature(decl_macro)]
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(rustdoc::missing_doc_code_examples)]
|
|
#![warn(rustdoc::all)]
|
|
|
|
pub fn foo() {}
|
|
//~^ WARN
|
|
//~^^ WARN
|
|
|
|
#[macro_export]
|
|
macro_rules! bar {
|
|
//~^ WARN missing documentation
|
|
//~^^ WARN missing code example
|
|
() => {};
|
|
}
|
|
|
|
pub macro bar_v2() {}
|
|
//~^ WARN missing documentation
|
|
//~^^ WARN missing code example
|