summary refs log tree commit diff
path: root/src/test/ui/issue-5100.stderr
blob: 6f5a84966bf35e1865d16e08200b4e9f8937cd5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:18:9
   |
LL |         A::B => (),
   |         ^^^^ expected tuple, found enum `A`
   |
   = note: expected type `(bool, bool)`
              found type `A`

error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:27:9
   |
LL |         (true, false, false) => ()
   |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
   |
   = note: expected type `(bool, bool)`
              found type `(_, _, _)`

error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:35:9
   |
LL |         (true, false, false) => ()
   |         ^^^^^^^^^^^^^^^^^^^^ expected a tuple with 2 elements, found one with 3 elements
   |
   = note: expected type `(bool, bool)`
              found type `(_, _, _)`

error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:43:9
   |
LL |         box (true, false) => ()
   |         ^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::boxed::Box`
   |
   = note: expected type `(bool, bool)`
              found type `std::boxed::Box<_>`

error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:50:9
   |
LL |         &(true, false) => ()
   |         ^^^^^^^^^^^^^^ expected tuple, found reference
   |
   = note: expected type `(bool, bool)`
              found type `&_`

error[E0618]: expected function, found `(char, char)`
  --> $DIR/issue-5100.rs:58:14
   |
LL |       let v = [('a', 'b')   //~ ERROR expected function, found `(char, char)`
   |  ______________^
LL | |              ('c', 'd'),
   | |_______________________^ not a function

error[E0308]: mismatched types
  --> $DIR/issue-5100.rs:65:19
   |
LL |     let x: char = true; //~  ERROR mismatched types
   |                   ^^^^ expected char, found bool

error: aborting due to 7 previous errors

Some errors occurred: E0308, E0618.
For more information about an error, try `rustc --explain E0308`.