1 error[E0107]: this associated function takes 1 generic argument but 2 generic arguments were supplied
2 --> $DIR/bad-mid-path-type-params.rs:30:16
4 LL | let _ = S::new::<isize,f64>(1, 1.0);
5 | ^^^ --- help: remove this generic argument
7 | expected 1 generic argument
9 note: associated function defined here, with 1 generic parameter: `U`
10 --> $DIR/bad-mid-path-type-params.rs:6:8
12 LL | fn new<U>(x: T, _: U) -> S<T> {
15 error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
16 --> $DIR/bad-mid-path-type-params.rs:33:13
18 LL | let _ = S::<'a,isize>::new::<f64>(1, 1.0);
19 | ^ -- help: remove this lifetime argument
21 | expected 0 lifetime arguments
23 note: struct defined here, with 0 lifetime parameters
24 --> $DIR/bad-mid-path-type-params.rs:1:8
29 error[E0107]: this associated function takes 1 generic argument but 2 generic arguments were supplied
30 --> $DIR/bad-mid-path-type-params.rs:36:24
32 LL | let _: S2 = Trait::new::<isize,f64>(1, 1.0);
33 | ^^^ --- help: remove this generic argument
35 | expected 1 generic argument
37 note: associated function defined here, with 1 generic parameter: `U`
38 --> $DIR/bad-mid-path-type-params.rs:14:8
40 LL | fn new<U>(x: T, y: U) -> Self;
43 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
44 --> $DIR/bad-mid-path-type-params.rs:39:17
46 LL | let _: S2 = Trait::<'a,isize>::new::<f64,f64>(1, 1.0);
47 | ^^^^^ -- help: remove this lifetime argument
49 | expected 0 lifetime arguments
51 note: trait defined here, with 0 lifetime parameters
52 --> $DIR/bad-mid-path-type-params.rs:13:7
57 error[E0107]: this associated function takes 1 generic argument but 2 generic arguments were supplied
58 --> $DIR/bad-mid-path-type-params.rs:39:36
60 LL | let _: S2 = Trait::<'a,isize>::new::<f64,f64>(1, 1.0);
61 | ^^^ --- help: remove this generic argument
63 | expected 1 generic argument
65 note: associated function defined here, with 1 generic parameter: `U`
66 --> $DIR/bad-mid-path-type-params.rs:14:8
68 LL | fn new<U>(x: T, y: U) -> Self;
71 error: aborting due to 5 previous errors
73 For more information about this error, try `rustc --explain E0107`.