]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/issue-105101.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / deriving / issue-105101.stderr
1 error: multiple declared defaults
2   --> $DIR/issue-105101.rs:3:10
3    |
4 LL | #[derive(Default)]
5    |          ^^^^^^^
6 ...
7 LL |     A,
8    |     - first default
9 LL |     #[default]
10 LL |     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
16 error[E0428]: the name `A` is defined multiple times
17   --> $DIR/issue-105101.rs:8:5
18    |
19 LL |     A,
20    |     - previous definition of the type `A` here
21 LL |     #[default]
22 LL |     A,
23    |     ^ `A` redefined here
24    |
25    = note: `A` must be defined only once in the type namespace of this enum
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0428`.