fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-5358-1.rs:6:9 3 | 4LL | match S(Either::Left(5)) { 5 | ------------------ this expression has type `S` 6LL | Either::Right(_) => {} 7 | ^^^^^^^^^^^^^^^^ expected `S`, found `Either<_, _>` 8 | 9 = note: expected struct `S` 10 found enum `Either<_, _>` 11help: try wrapping the pattern in `S` 12 | 13LL | S(Either::Right(_)) => {} 14 | ++ + 15help: you might have meant to use field `0` whose type is `Either<usize, usize>` 16 | 17LL | match S(Either::Left(5)).0 { 18 | ~~~~~~~~~~~~~~~~~~~~ 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0308`.