|  | 
|  | 1 | +error[E0428]: the name `NotSM` is defined multiple times | 
|  | 2 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:13:1 | 
|  | 3 | +   | | 
|  | 4 | +LL | struct NotSM; | 
|  | 5 | +   | ------------- previous definition of the type `NotSM` here | 
|  | 6 | +... | 
|  | 7 | +LL | struct NotSM<T>(T); | 
|  | 8 | +   | ^^^^^^^^^^^^^^^^^^^ `NotSM` redefined here | 
|  | 9 | +   | | 
|  | 10 | +   = note: `NotSM` must be defined only once in the type namespace of this module | 
|  | 11 | + | 
|  | 12 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied | 
|  | 13 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:8:10 | 
|  | 14 | +   | | 
|  | 15 | +LL | #[derive(PartialEq, Eq)] | 
|  | 16 | +   |          ^^^^^^^^^ expected 0 generic arguments | 
|  | 17 | +   | | 
|  | 18 | +note: struct defined here, with 0 generic parameters | 
|  | 19 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:6:8 | 
|  | 20 | +   | | 
|  | 21 | +LL | struct NotSM; | 
|  | 22 | +   |        ^^^^^ | 
|  | 23 | + | 
|  | 24 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied | 
|  | 25 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:8:10 | 
|  | 26 | +   | | 
|  | 27 | +LL | #[derive(PartialEq, Eq)] | 
|  | 28 | +   |          ^^^^^^^^^ expected 0 generic arguments | 
|  | 29 | +   | | 
|  | 30 | +note: struct defined here, with 0 generic parameters | 
|  | 31 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:6:8 | 
|  | 32 | +   | | 
|  | 33 | +LL | struct NotSM; | 
|  | 34 | +   |        ^^^^^ | 
|  | 35 | +   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | 
|  | 36 | + | 
|  | 37 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied | 
|  | 38 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:8:21 | 
|  | 39 | +   | | 
|  | 40 | +LL | #[derive(PartialEq, Eq)] | 
|  | 41 | +   |                     ^^ expected 0 generic arguments | 
|  | 42 | +   | | 
|  | 43 | +note: struct defined here, with 0 generic parameters | 
|  | 44 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:6:8 | 
|  | 45 | +   | | 
|  | 46 | +LL | struct NotSM; | 
|  | 47 | +   |        ^^^^^ | 
|  | 48 | + | 
|  | 49 | +error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied | 
|  | 50 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:8:10 | 
|  | 51 | +   | | 
|  | 52 | +LL | #[derive(PartialEq, Eq)] | 
|  | 53 | +   |          ^^^^^^^^^ expected 0 generic arguments | 
|  | 54 | +   | | 
|  | 55 | +note: struct defined here, with 0 generic parameters | 
|  | 56 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:6:8 | 
|  | 57 | +   | | 
|  | 58 | +LL | struct NotSM; | 
|  | 59 | +   |        ^^^^^ | 
|  | 60 | +   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | 
|  | 61 | + | 
|  | 62 | +error[E0609]: no field `0` on type `&NotSM` | 
|  | 63 | +  --> $DIR/multiple-types-with-same-name-and-derive.rs:13:17 | 
|  | 64 | +   | | 
|  | 65 | +LL | struct NotSM<T>(T); | 
|  | 66 | +   |                 ^ unknown field | 
|  | 67 | + | 
|  | 68 | +error: aborting due to 6 previous errors | 
|  | 69 | + | 
|  | 70 | +Some errors have detailed explanations: E0107, E0428, E0609. | 
|  | 71 | +For more information about an error, try `rustc --explain E0107`. | 
0 commit comments