Files
rust/tests/ui/traits/issue-106072.rs

7 lines
190 B
Rust
Raw Normal View History

#[derive(Clone)]
//~^ ERROR expected a type, found a trait
//~| ERROR expected a type, found a trait
struct Foo;
trait Foo {} //~ ERROR the name `Foo` is defined multiple times
fn main() {}