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

9 lines
185 B
Rust
Raw Normal View History

2023-10-03 14:06:17 -05:00
// check-pass
#[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() {}