]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-60622.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-60622.rs
1 #![deny(warnings)]
2
3 struct Borked {}
4
5 impl Borked {
6 fn a(&self) {}
7 }
8
9 fn run_wild<T>(b: &Borked) {
10 b.a::<'_, T>();
11 //~^ ERROR cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
12 //~| ERROR this associated function takes 0 generic arguments but 1 generic argument
13 //~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14 }
15
16 fn main() {}