Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lint
/
unused
/
issue-104397.rs
blob: 29a3e1b4f14a7cfe1e9b498d9afa49af6d47edf0 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
#![
warn
(
unused
)]
#![
deny
(
warnings
)]
struct
Inv
<
'a>(#[allow(dead_code)] &'
a
mut
&
'
a
());
trait
Trait
{}
impl
Trait
for
for
<
'a> fn(Inv<'
a
>)
{}
fn
with_bound
()
where
(
for
<
'a> fn(Inv<'
a
>)):
Trait
,
{}
fn
main
()
{
with_bound
();
}