fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0532]: expected tuple struct or tuple variant, found struct `Empty1` 2 --> $DIR/empty-struct-braces-pat-2.rs:15:9 3 | 4LL | struct Empty1 {} 5 | ---------------- `Empty1` defined here 6... 7LL | Empty1() => () 8 | ^^^^^^ 9 | | 10 | did you mean `Empty1 { /* fields */ }`? 11 | help: a tuple struct with a similar name exists: `XEmpty6` 12 13error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1` 14 --> $DIR/empty-struct-braces-pat-2.rs:18:9 15 | 16LL | XEmpty1() => () 17 | ^^^^^^^ 18 | | 19 | did you mean `XEmpty1 { /* fields */ }`? 20 | help: a tuple struct with a similar name exists: `XEmpty6` 21 22error[E0532]: expected tuple struct or tuple variant, found struct `Empty1` 23 --> $DIR/empty-struct-braces-pat-2.rs:21:9 24 | 25LL | struct Empty1 {} 26 | ---------------- `Empty1` defined here 27... 28LL | Empty1(..) => () 29 | ^^^^^^ 30 | | 31 | did you mean `Empty1 { /* fields */ }`? 32 | help: a tuple struct with a similar name exists: `XEmpty6` 33 34error[E0532]: expected tuple struct or tuple variant, found struct `XEmpty1` 35 --> $DIR/empty-struct-braces-pat-2.rs:24:9 36 | 37LL | XEmpty1(..) => () 38 | ^^^^^^^ 39 | | 40 | did you mean `XEmpty1 { /* fields */ }`? 41 | help: a tuple struct with a similar name exists: `XEmpty6` 42 43error: aborting due to 4 previous errors 44 45For more information about this error, try `rustc --explain E0532`.