]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-auto-traits.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / feature-gates / feature-gate-auto-traits.rs
1 // Test that default and negative trait implementations are gated by
2 // `auto_traits` feature gate
3
4 struct DummyStruct;
5
6 auto trait AutoDummyTrait {}
7 //~^ ERROR auto traits are experimental and possibly buggy
8
9 impl !AutoDummyTrait for DummyStruct {}
10 //~^ ERROR negative trait bounds are not yet fully implemented; use marker types for now
11
12 fn main() {}