diff options
Diffstat (limited to 'tests/ui/auto-traits/pre-cfg.rs')
-rw-r--r-- | tests/ui/auto-traits/pre-cfg.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/pre-cfg.rs b/tests/ui/auto-traits/pre-cfg.rs new file mode 100644 index 000000000..e6e840dcb --- /dev/null +++ b/tests/ui/auto-traits/pre-cfg.rs @@ -0,0 +1,8 @@ +// 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() {} |