1 #![feature(box_patterns)]
2 #![feature(box_syntax)]
9 //~^ ERROR mismatched types
10 //~| expected tuple, found enum `A`
11 //~| expected tuple `(bool, bool)`
17 (true, false, false) => ()
18 //~^ ERROR mismatched types
19 //~| expected a tuple with 2 elements, found one with 3 elements
20 //~| expected tuple `(bool, bool)`
21 //~| found tuple `(_, _, _)`
25 (true, false, false) => ()
26 //~^ ERROR mismatched types
27 //~| expected a tuple with 2 elements, found one with 3 elements
28 //~| expected tuple `(bool, bool)`
29 //~| found tuple `(_, _, _)`
33 box (true, false) => ()
34 //~^ ERROR mismatched types
35 //~| expected tuple `(bool, bool)`
36 //~| found struct `Box<_>`
41 //~^ ERROR mismatched types
42 //~| expected tuple, found reference
43 //~| expected tuple `(bool, bool)`
44 //~| found reference `&_`
48 let v = [('a', 'b') //~ ERROR expected function, found `(char, char)`
52 for &(x,y) in &v {} // should be OK
54 // Make sure none of the errors above were fatal
55 let x: char = true; //~ ERROR mismatched types
56 //~| expected `char`, found `bool`