rust/src/test/ui/issues/issue-66706.rs
2020-03-26 16:33:18 +00:00

13 lines
283 B
Rust

fn a() {
[0; [|_: _ &_| ()].len()]
//~^ ERROR expected `,`, found `&`
//~| ERROR type annotations needed
//~| ERROR mismatched types
}
fn b() {
[0; [|f @ &ref _| {} ; 0 ].len() ];
//~^ ERROR expected identifier, found reserved identifier `_`
}
fn main() {}