Sign in
rust
/
rust
/
9b1f20d20dc00a950f99a00a34be9d2ca78d1f0d
/
.
/
tests
/
ui
/
consts
/
escaping-bound-var.rs
blob: 03162c74882d4313b62430d150ef4377ab0bec71 [
file
]
#![
feature
(
generic_const_exprs
)]
fn
test
<
'
a
>(
_
:
&
'
a
(),
)
->
[();
{
//~ ERROR: mismatched types
let
x
:
&
'
a
();
//~^ ERROR cannot capture late-bound lifetime in constant
1
}]
{
}
fn
main
()
{}