1 // Here we test that the parser is able to recover in a situation like
2 // `for ( $pat in $expr )` since that is familiar syntax in other languages.
3 // Instead we suggest that the user writes `for $pat in $expr`.
5 #![deny(unused)] // Make sure we don't trigger `unused_parens`.
8 let vec = vec![1, 2, 3];
11 //~^ ERROR expected one of `)`, `,`, `@`, or `|`, found keyword `in`
12 //~| ERROR unexpected parentheses surrounding `for` loop head
13 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types