]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-trait-validation.rs
Auto merge of #60072 - RalfJung:linked-list, r=shepmaster
[rust.git] / src / test / ui / auto-trait-validation.rs
1 #![feature(optin_builtin_traits)]
2
3 auto trait Generic<T> {}
4 //~^ auto traits cannot have generic parameters [E0567]
5 auto trait Bound : Copy {}
6 //~^ auto traits cannot have super traits [E0568]
7 auto trait MyTrait { fn foo() {} }
8 //~^ auto traits cannot have methods or associated items [E0380]
9 fn main() {}