mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
14 lines
302 B
Rust
14 lines
302 B
Rust
// 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() {}
|