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;
|
|
|
|
|
|
|
|
trait DummyTrait {
|
|
|
|
fn dummy(&self) {}
|
|
|
|
}
|
|
|
|
|
2017-10-12 17:00:30 -05:00
|
|
|
auto trait AutoDummyTrait {}
|
|
|
|
//~^ ERROR auto traits are experimental and possibly buggy
|
|
|
|
|
2015-04-16 07:48:31 -05:00
|
|
|
impl !DummyTrait for DummyStruct {}
|
|
|
|
//~^ ERROR negative trait bounds are not yet fully implemented; use marker types for now
|
|
|
|
|
|
|
|
fn main() {}
|