mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 11:37:50 +00:00
12 lines
241 B
Rust
12 lines
241 B
Rust
// 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() {}
|