2015-04-16 07:48:31 -05:00
|
|
|
// Test that default and negative trait implementations are gated by
|
2020-11-22 21:54:31 -06:00
|
|
|
// `auto_traits` feature gate
|
2015-04-16 07:48:31 -05:00
|
|
|
|
|
|
|
struct DummyStruct;
|
|
|
|
|
2017-10-12 17:00:30 -05:00
|
|
|
auto trait AutoDummyTrait {}
|
|
|
|
//~^ ERROR auto traits are experimental and possibly buggy
|
|
|
|
|
2019-01-02 08:14:24 -06:00
|
|
|
impl !AutoDummyTrait for DummyStruct {}
|
2015-04-16 07:48:31 -05:00
|
|
|
//~^ ERROR negative trait bounds are not yet fully implemented; use marker types for now
|
|
|
|
|
|
|
|
fn main() {}
|