]> git.proxmox.com Git - rustc.git/blob - tests/ui/lint/unused/issue-105061.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / lint / unused / issue-105061.rs
1 #![warn(unused)]
2 #![deny(warnings)]
3
4 struct Inv<'a>(&'a mut &'a ());
5
6 trait Trait {}
7 impl Trait for (for<'a> fn(Inv<'a>),) {}
8
9
10 fn with_bound()
11 where
12 ((for<'a> fn(Inv<'a>)),): Trait, //~ ERROR unnecessary parentheses around type
13 {}
14
15 fn main() {
16 with_bound();
17 }