blob: d223619e1de9ed3bdb23d80dc9ad9f9260b04874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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() {}
|