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