6 fn new<U>(x: T, _: U) -> S<T> {
14 fn new<U>(x: T, y: U) -> Self;
21 impl Trait<isize> for S2 {
22 fn new<U>(x: isize, _: U) -> S2 {
30 let _ = S::new::<isize,f64>(1, 1.0);
31 //~^ ERROR this associated function takes 1
33 let _ = S::<'a,isize>::new::<f64>(1, 1.0);
34 //~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
36 let _: S2 = Trait::new::<isize,f64>(1, 1.0);
37 //~^ ERROR this associated function takes 1
39 let _: S2 = Trait::<'a,isize>::new::<f64,f64>(1, 1.0);
40 //~^ ERROR this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
41 //~| ERROR this associated function takes 1