mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
13 lines
353 B
Rust
13 lines
353 B
Rust
// Test that default and negative trait implementations are gated by
|
|
// `auto_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() {}
|