fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: multiple declared defaults 2 --> $DIR/issue-105101.rs:3:10 3 | 4LL | #[derive(Default)] 5 | ^^^^^^^ 6... 7LL | A, 8 | - first default 9LL | #[default] 10LL | A, 11 | - additional default 12 | 13 = note: only one variant can be default 14 = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info) 15 16error[E0428]: the name `A` is defined multiple times 17 --> $DIR/issue-105101.rs:8:5 18 | 19LL | A, 20 | - previous definition of the type `A` here 21LL | #[default] 22LL | A, 23 | ^ `A` redefined here 24 | 25 = note: `A` must be defined only once in the type namespace of this enum 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0428`.