rust/src/test/ui/auto-trait-validation.rs
2018-12-25 21:08:33 -07:00

10 lines
306 B
Rust

#![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() {}