Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
parser
/
regions-out-of-scope-slice.rs
blob: d223619e1de9ed3bdb23d80dc9ad9f9260b04874 [
file
] [
log
] [
blame
]
// 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
()
{}