2022-12-23 12:41:06 -06:00
|
|
|
#![warn(unused)]
|
|
|
|
#![deny(warnings)]
|
|
|
|
|
2023-12-27 16:11:58 -06:00
|
|
|
struct Inv<'a>(#[allow(dead_code)] &'a mut &'a ());
|
2022-12-23 12:41:06 -06:00
|
|
|
|
|
|
|
trait Trait {}
|
|
|
|
impl Trait for (for<'a> fn(Inv<'a>),) {}
|
|
|
|
|
|
|
|
|
|
|
|
fn with_bound()
|
|
|
|
where
|
|
|
|
((for<'a> fn(Inv<'a>)),): Trait, //~ ERROR unnecessary parentheses around type
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
with_bound();
|
|
|
|
}
|