]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-tuple.rs
Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup
[rust.git] / src / test / ui / parser / recover-tuple.rs
1 fn main() {
2     // no complaints about the tuple not matching the expected type
3     let x: (usize, usize, usize) = (3, .=.);
4     //~^ ERROR expected expression, found `.`
5     // verify that the parser recovers:
6     let y: usize = ""; //~ ERROR mismatched types
7     // no complaints about the type
8     foo(x);
9 }
10
11 fn foo(_: (usize, usize, usize)) {}