Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
single-use-lifetime
/
issue-107998.rs
blob: f32688d205813b454f68648b0d5ef87694c8f62a [
file
] [
log
] [
blame
] [
edit
]
#![
deny
(
single_use_lifetimes
)]
fn
with
<
R
>(
f
:
&
fn
<
'a>(x: &'
a i32
)
->
R
)
->
R
{
//~^ ERROR function pointer types may not have generic parameters
//~| ERROR lifetime parameter `'a` only used once
f
(&
3
)
}
fn
main
()
{}