blob: d223619e1de9ed3bdb23d80dc9ad9f9260b04874 [file] [log] [blame] [edit]
// This basically tests the parser's recovery on `'blk` in the wrong place.
fn foo(cond: bool) {
let mut x;
if cond {
x = &'blk [1,2,3]; //~ ERROR borrow expressions cannot be annotated with lifetimes
}
}
fn main() {}