rust/tests/ui/auto-traits/pre-cfg.rs

9 lines
186 B
Rust
Raw Normal View History

//@ check-pass
2023-10-03 14:06:17 -05:00
#[cfg(FALSE)]
auto trait Foo {}
//~^ WARN `auto` traits are unstable
//~| WARN unstable syntax can change at any point in the future, causing a hard error!
fn main() {}