summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-optin-builtin-traits.rs
blob: 35c05b75d365c4a1200994c3fc01b243983a8d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that default and negative trait implementations are gated by
// `optin_builtin_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 yet fully implemented; use marker types for now

fn main() {}