fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2` 2 --> $DIR/empty-struct-unit-pat.rs:21:9 3 | 4LL | struct Empty2; 5 | -------------- `Empty2` defined here 6... 7LL | Empty2() => () 8 | ^^^^^^^^ 9 | 10 ::: $DIR/auxiliary/empty-struct.rs:3:1 11 | 12LL | pub struct XEmpty6(); 13 | ------------------ similarly named tuple struct `XEmpty6` defined here 14 | 15help: use this syntax instead 16 | 17LL | Empty2 => () 18 | ~~~~~~ 19help: a tuple struct with a similar name exists 20 | 21LL | XEmpty6() => () 22 | ~~~~~~~ 23 24error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2` 25 --> $DIR/empty-struct-unit-pat.rs:24:9 26 | 27LL | XEmpty2() => () 28 | ^^^^^^^^^ 29 | 30 ::: $DIR/auxiliary/empty-struct.rs:2:1 31 | 32LL | pub struct XEmpty2; 33 | ------------------ `XEmpty2` defined here 34LL | pub struct XEmpty6(); 35 | ------------------ similarly named tuple struct `XEmpty6` defined here 36 | 37help: use this syntax instead 38 | 39LL | XEmpty2 => () 40 | ~~~~~~~ 41help: a tuple struct with a similar name exists 42 | 43LL | XEmpty6() => () 44 | ~~~~~~~ 45 46error[E0532]: expected tuple struct or tuple variant, found unit struct `Empty2` 47 --> $DIR/empty-struct-unit-pat.rs:28:9 48 | 49LL | struct Empty2; 50 | -------------- `Empty2` defined here 51... 52LL | Empty2(..) => () 53 | ^^^^^^^^^^ 54 | 55 ::: $DIR/auxiliary/empty-struct.rs:3:1 56 | 57LL | pub struct XEmpty6(); 58 | ------------------ similarly named tuple struct `XEmpty6` defined here 59 | 60help: use this syntax instead 61 | 62LL | Empty2 => () 63 | ~~~~~~ 64help: a tuple struct with a similar name exists 65 | 66LL | XEmpty6(..) => () 67 | ~~~~~~~ 68 69error[E0532]: expected tuple struct or tuple variant, found unit struct `XEmpty2` 70 --> $DIR/empty-struct-unit-pat.rs:32:9 71 | 72LL | XEmpty2(..) => () 73 | ^^^^^^^^^^^ 74 | 75 ::: $DIR/auxiliary/empty-struct.rs:2:1 76 | 77LL | pub struct XEmpty2; 78 | ------------------ `XEmpty2` defined here 79LL | pub struct XEmpty6(); 80 | ------------------ similarly named tuple struct `XEmpty6` defined here 81 | 82help: use this syntax instead 83 | 84LL | XEmpty2 => () 85 | ~~~~~~~ 86help: a tuple struct with a similar name exists 87 | 88LL | XEmpty6(..) => () 89 | ~~~~~~~ 90 91error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4` 92 --> $DIR/empty-struct-unit-pat.rs:37:9 93 | 94LL | Empty4 95 | ------ `E::Empty4` defined here 96... 97LL | E::Empty4() => () 98 | ^^^^^^^^^^^ help: use this syntax instead: `E::Empty4` 99 100error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4` 101 --> $DIR/empty-struct-unit-pat.rs:41:9 102 | 103LL | XE::XEmpty4() => (), 104 | ^^^^^^^^^^^^^ 105 | 106 ::: $DIR/auxiliary/empty-struct.rs:7:5 107 | 108LL | XEmpty4, 109 | ------- `XE::XEmpty4` defined here 110LL | XEmpty5(), 111 | ------- similarly named tuple variant `XEmpty5` defined here 112 | 113help: use this syntax instead 114 | 115LL | XE::XEmpty4 => (), 116 | ~~~~~~~~~~~ 117help: a tuple variant with a similar name exists 118 | 119LL | XE::XEmpty5() => (), 120 | ~~~~~~~ 121 122error[E0532]: expected tuple struct or tuple variant, found unit variant `E::Empty4` 123 --> $DIR/empty-struct-unit-pat.rs:46:9 124 | 125LL | Empty4 126 | ------ `E::Empty4` defined here 127... 128LL | E::Empty4(..) => () 129 | ^^^^^^^^^^^^^ help: use this syntax instead: `E::Empty4` 130 131error[E0532]: expected tuple struct or tuple variant, found unit variant `XE::XEmpty4` 132 --> $DIR/empty-struct-unit-pat.rs:50:9 133 | 134LL | XE::XEmpty4(..) => (), 135 | ^^^^^^^^^^^^^^^ 136 | 137 ::: $DIR/auxiliary/empty-struct.rs:7:5 138 | 139LL | XEmpty4, 140 | ------- `XE::XEmpty4` defined here 141LL | XEmpty5(), 142 | ------- similarly named tuple variant `XEmpty5` defined here 143 | 144help: use this syntax instead 145 | 146LL | XE::XEmpty4 => (), 147 | ~~~~~~~~~~~ 148help: a tuple variant with a similar name exists 149 | 150LL | XE::XEmpty5(..) => (), 151 | ~~~~~~~ 152 153error: aborting due to 8 previous errors 154 155For more information about this error, try `rustc --explain E0532`.