mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
20 lines
239 B
Rust
20 lines
239 B
Rust
![]() |
//@ check-pass
|
||
|
//@ compile-flags: --cfg false --check-cfg=cfg(r#false)
|
||
|
|
||
|
#![deny(warnings)]
|
||
|
|
||
|
#[expect(unexpected_cfgs)]
|
||
|
mod a {
|
||
|
#[cfg(r#true)]
|
||
|
pub fn foo() {}
|
||
|
}
|
||
|
|
||
|
mod b {
|
||
|
#[cfg(r#false)]
|
||
|
pub fn bar() {}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
b::bar()
|
||
|
}
|