mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
428 B
Rust
14 lines
428 B
Rust
#![feature(auto_traits)]
|
|
|
|
// run-rustfix
|
|
|
|
auto trait Generic<T> {}
|
|
//~^ auto traits cannot have generic parameters [E0567]
|
|
auto trait Bound : Copy {}
|
|
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
|
|
auto trait LifetimeBound : 'static {}
|
|
//~^ auto traits cannot have super traits or lifetime bounds [E0568]
|
|
auto trait MyTrait { fn foo() {} }
|
|
//~^ auto traits cannot have associated items [E0380]
|
|
fn main() {}
|