1
Fork 0
rust/src/test/ui/auto-traits/auto-trait-validation.rs

10 lines
297 B
Rust
Raw Normal View History

#![feature(auto_traits)]
auto trait Generic<T> {}
2017-12-04 20:55:14 -02:00
//~^ auto traits cannot have generic parameters [E0567]
auto trait Bound : Copy {}
2017-12-04 20:55:14 -02:00
//~^ auto traits cannot have super traits [E0568]
auto trait MyTrait { fn foo() {} }
2017-12-04 20:55:14 -02:00
//~^ auto traits cannot have methods or associated items [E0380]
fn main() {}