fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0532]: expected tuple struct or tuple variant, found variant `FooB` 2 --> $DIR/issue-106862.rs:16:9 3 | 4LL | FooB { x: i32, y: i32 } 5 | ----------------------- `FooB` defined here 6... 7LL | FooB(a, b) => println!("{} {}", a, b), 8 | ^^^^^^^^^^ help: use struct pattern syntax instead: `FooB { x: a, y: b }` 9 10error[E0532]: expected tuple struct or tuple variant, found variant `FooB` 11 --> $DIR/issue-106862.rs:22:9 12 | 13LL | FooB { x: i32, y: i32 } 14 | ----------------------- `FooB` defined here 15... 16LL | FooB(x, y) => println!("{} {}", x, y), 17 | ^^^^^^^^^^ help: use struct pattern syntax instead: `FooB { x, y }` 18 19error[E0532]: expected tuple struct or tuple variant, found variant `FooA` 20 --> $DIR/issue-106862.rs:28:9 21 | 22LL | FooA { opt_x: Option<i32>, y: i32 }, 23 | ----------------------------------- `FooA` defined here 24... 25LL | FooA(Some(x), y) => println!("{} {}", x, y), 26 | ^^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `FooA { opt_x: Some(x), y }` 27 28error[E0532]: expected tuple struct or tuple variant, found variant `FooB` 29 --> $DIR/issue-106862.rs:34:9 30 | 31LL | FooB { x: i32, y: i32 } 32 | ----------------------- `FooB` defined here 33... 34LL | FooB(a, _, _) => println!("{}", a), 35 | ^^^^^^^^^^^^^ help: use struct pattern syntax instead: `FooB { x: a, y: _ }` 36 37error[E0532]: expected tuple struct or tuple variant, found variant `FooB` 38 --> $DIR/issue-106862.rs:40:9 39 | 40LL | FooB { x: i32, y: i32 } 41 | ----------------------- `FooB` defined here 42... 43LL | FooB() => (), 44 | ^^^^^^ help: use struct pattern syntax instead: `FooB { x, y }` 45 46error: aborting due to 5 previous errors 47 48For more information about this error, try `rustc --explain E0532`.