fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0308]: mismatched types 2 --> $DIR/issue-5100.rs:8:9 3 | 4LL | A::B => (), 5 | ^^^^ expected tuple, found enum `A` 6 | 7 = note: expected type `(bool, bool)` 8 found type `A` 9 10error[E0308]: mismatched types 11 --> $DIR/issue-5100.rs:17:9 12 | 13LL | (true, false, false) => () 14 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements 15 | 16 = note: expected type `(bool, bool)` 17 found type `(_, _, _)` 18 19error[E0308]: mismatched types 20 --> $DIR/issue-5100.rs:25:9 21 | 22LL | (true, false, false) => () 23 | ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements 24 | 25 = note: expected type `(bool, bool)` 26 found type `(_, _, _)` 27 28error[E0308]: mismatched types 29 --> $DIR/issue-5100.rs:33:9 30 | 31LL | match (true, false) { 32 | ------------- this match expression has type `(bool, bool)` 33LL | box (true, false) => () 34 | ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box` 35 | 36 = note: expected type `(bool, bool)` 37 found type `std::boxed::Box<_>` 38 39error[E0308]: mismatched types 40 --> $DIR/issue-5100.rs:40:9 41 | 42LL | &(true, false) => () 43 | ^^^^^^^^^^^^^^ expected tuple, found reference 44 | 45 = note: expected type `(bool, bool)` 46 found type `&_` 47 48error[E0618]: expected function, found `(char, char)` 49 --> $DIR/issue-5100.rs:48:14 50 | 51LL | let v = [('a', 'b') 52 | ______________-^^^^^^^^^ 53LL | | ('c', 'd'), 54 | |_______________________- call expression requires function 55 56error[E0308]: mismatched types 57 --> $DIR/issue-5100.rs:55:19 58 | 59LL | let x: char = true; 60 | ^^^^ expected char, found bool 61 62error: aborting due to 7 previous errors 63 64Some errors have detailed explanations: E0308, E0618. 65For more information about an error, try `rustc --explain E0308`.