about summary refs log tree commit diff
path: root/src/test/ui/auto-traits/auto-trait-validation.rs
blob: 34d6c3da00ee3308486f6aebcfa127ea1837b591 (plain)
1
2
3
4
5
6
7
8
9
#![feature(optin_builtin_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() {}