Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
escaping-bound-var.rs
blob: a538d607d6ca5fdd0987046c88c17e0894359b0c [
file
] [
log
] [
blame
] [
edit
]
#![
feature
(
generic_const_exprs
)]
//~^ WARN the feature `generic_const_exprs` is incomplete
fn
test
<
'
a
>(
_
:
&
'
a
(),
)
->
[();
{
//~ ERROR: mismatched types
let
x
:
&
'
a
();
//~^ ERROR cannot capture late-bound lifetime in constant
1
}]
{
}
fn
main
()
{}