blob: b1abf8b69620c53c2a29cecd5d6273508db9270b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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() {}
|