]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60622.rs
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-60622.rs
1 // ignore-tidy-linelength
2
3 #![deny(warnings)]
4
5 struct Borked {}
6
7 impl Borked {
8     fn a(&self) {}
9 }
10
11 fn run_wild<T>(b: &Borked) {
12     b.a::<'_, T>();
13     //~^ ERROR cannot specify lifetime arguments explicitly if late bound lifetime parameters are present
14     //~^^ ERROR wrong number of type arguments: expected 0, found 1
15     //~^^^ WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
16 }
17
18 fn main() {}