2019-01-25 18:44:50 -07:00
|
|
|
// This basically tests the parser's recovery on `'blk` in the wrong place.
|
2015-02-09 20:01:45 +01:00
|
|
|
|
2012-04-30 10:37:58 -07:00
|
|
|
fn foo(cond: bool) {
|
2018-10-21 03:21:16 +03:00
|
|
|
let mut x;
|
2012-04-30 10:37:58 -07:00
|
|
|
|
|
|
|
if cond {
|
2020-03-05 07:54:22 +01:00
|
|
|
x = &'blk [1,2,3]; //~ ERROR borrow expressions cannot be annotated with lifetimes
|
2012-04-30 10:37:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-14 11:47:00 -08:00
|
|
|
fn main() {}
|