fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0428]: the name `Foo` is defined multiple times 2 --> $DIR/issue-106072.rs:3:1 3 | 4LL | struct Foo; 5 | ----------- previous definition of the type `Foo` here 6LL | trait Foo {} 7 | ^^^^^^^^^ `Foo` redefined here 8 | 9 = note: `Foo` must be defined only once in the type namespace of this module 10 11error[E0782]: trait objects must include the `dyn` keyword 12 --> $DIR/issue-106072.rs:1:10 13 | 14LL | #[derive(Clone)] 15 | ^^^^^ 16 | 17 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) 18 19error: aborting due to 2 previous errors 20 21Some errors have detailed explanations: E0428, E0782. 22For more information about an error, try `rustc --explain E0428`.