2022-11-23 18:57:11 -06:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
#![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();
|
|
|
|
}
|