rust/tests/ui/lint/lint-missing-doc-expect.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
300 B
Rust
Raw Normal View History

// Make sure that `#[expect(missing_docs)]` is always correctly fulfilled.
//@ check-pass
//@ revisions: lib bin test
//@ [lib]compile-flags: --crate-type lib
//@ [bin]compile-flags: --crate-type bin
//@ [test]compile-flags: --test
#[expect(missing_docs)]
pub fn foo() {}
#[cfg(bin)]
fn main() {}