about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-auto-traits.rs
blob: aab9e784fe9d7ae96a4954631a07d6aa8cd48090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that default and negative trait implementations are gated by
// `auto_traits` feature gate

struct DummyStruct;

auto trait AutoDummyTrait {}
//~^ ERROR auto traits are experimental and possibly buggy

impl !AutoDummyTrait for DummyStruct {}
//~^ ERROR negative trait bounds are not fully implemented; use marker types for now

fn main() {}