blob: a997b044c8ff8f21b435d2d4fba66ddf9e654d56 (
plain)
1
2
3
4
5
6
7
8
9
|
#![feature(auto_traits)]
auto trait Generic<T> {}
//~^ auto traits cannot have generic parameters [E0567]
auto trait Bound : Copy {}
//~^ auto traits cannot have super traits [E0568]
auto trait MyTrait { fn foo() {} }
//~^ auto traits cannot have methods or associated items [E0380]
fn main() {}
|