]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5100.stderr
Auto merge of #56534 - xfix:copied, r=@SimonSapin
[rust.git] / src / test / ui / issues / issue-5100.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-5100.rs:8:9
3    |
4 LL |         A::B => (),
5    |         ^^^^ expected tuple, found enum `A`
6    |
7    = note: expected type `(bool, bool)`
8               found type `A`
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-5100.rs:17:9
12    |
13 LL |         (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
19 error[E0308]: mismatched types
20   --> $DIR/issue-5100.rs:25:9
21    |
22 LL |         (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
28 error[E0308]: mismatched types
29   --> $DIR/issue-5100.rs:33:9
30    |
31 LL |         box (true, false) => ()
32    |         ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
33    |
34    = note: expected type `(bool, bool)`
35               found type `std::boxed::Box<_>`
36
37 error[E0308]: mismatched types
38   --> $DIR/issue-5100.rs:40:9
39    |
40 LL |         &(true, false) => ()
41    |         ^^^^^^^^^^^^^^ expected tuple, found reference
42    |
43    = note: expected type `(bool, bool)`
44               found type `&_`
45
46 error[E0618]: expected function, found `(char, char)`
47   --> $DIR/issue-5100.rs:48:14
48    |
49 LL |       let v = [('a', 'b')   //~ ERROR expected function, found `(char, char)`
50    |  ______________-^^^^^^^^^
51 LL | |              ('c', 'd'),
52    | |_______________________- call expression requires function
53
54 error[E0308]: mismatched types
55   --> $DIR/issue-5100.rs:55:19
56    |
57 LL |     let x: char = true; //~  ERROR mismatched types
58    |                   ^^^^ expected char, found bool
59
60 error: aborting due to 7 previous errors
61
62 Some errors occurred: E0308, E0618.
63 For more information about an error, try `rustc --explain E0308`.