Sign in
◑
Theme
rust
/
rust
/
1c4af67116792ba7674d4c3a488137a8d0ff6520
/
.
/
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
()
{}