2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2022-11-23 18:57:11 -06:00
|
|
|
|
|
|
|
#![warn(unused)]
|
|
|
|
#![deny(warnings)]
|
|
|
|
|
2023-12-27 16:11:58 -06:00
|
|
|
struct Inv<'a>(#[allow(dead_code)] &'a mut &'a ());
|
2022-11-23 18:57:11 -06:00
|
|
|
|
|
|
|
trait Trait {}
|
|
|
|
impl Trait for for<'a> fn(Inv<'a>) {}
|
|
|
|
|
|
|
|
fn with_bound()
|
|
|
|
where
|
|
|
|
(for<'a> fn(Inv<'a>)): Trait,
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
with_bound();
|
|
|
|
}
|