2015-04-16 07:48:31 -05:00
|
|
|
// Test that default and negative trait implementations are gated by
|
|
|
|
// `optin_builtin_traits` feature gate
|
|
|
|
|
|
|
|
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() {}
|