Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
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
()
{}