2024-09-06 05:20:36 -05:00
|
|
|
// Make sure that `#[expect(missing_docs)]` is always correctly fulfilled.
|
|
|
|
|
|
|
|
//@ check-pass
|
2024-10-19 09:02:40 -05:00
|
|
|
//@ revisions: lib bin test_
|
2024-09-06 05:20:36 -05:00
|
|
|
//@ [lib]compile-flags: --crate-type lib
|
|
|
|
//@ [bin]compile-flags: --crate-type bin
|
2024-10-19 09:02:40 -05:00
|
|
|
//@ [test_]compile-flags: --test
|
2024-09-06 05:20:36 -05:00
|
|
|
|
|
|
|
#[expect(missing_docs)]
|
|
|
|
pub fn foo() {}
|
|
|
|
|
|
|
|
#[cfg(bin)]
|
|
|
|
fn main() {}
|