| error[E0107]: function takes at most 2 generic arguments but 3 generic arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:24:25 |
| | |
| LL | reuse to_reuse::bar; |
| | ^^^ |
| | | |
| | expected at most 2 generic arguments |
| | help: remove the unnecessary generic argument |
| | |
| note: function defined here, with at most 2 generic parameters: `A`, `B` |
| --> $DIR/trait-impl-wrong-args-count.rs:6:16 |
| | |
| LL | pub fn bar<'a: 'a, 'b: 'b, A, B>(x: &super::XX) {} |
| | ^^^ - - |
| |
| error[E0107]: function takes 0 lifetime arguments but 2 lifetime arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:27:25 |
| | |
| LL | reuse to_reuse::bar1; |
| | ^^^^ |
| | | |
| | expected 0 lifetime arguments |
| | help: remove the lifetime arguments |
| | |
| note: function defined here, with 0 lifetime parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:7:16 |
| | |
| LL | pub fn bar1(x: &super::XX) {} |
| | ^^^^ |
| |
| error[E0107]: function takes 0 generic arguments but 3 generic arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:27:25 |
| | |
| LL | reuse to_reuse::bar1; |
| | ^^^^ |
| | | |
| | expected 0 generic arguments |
| | help: remove the unnecessary generic arguments |
| | |
| note: function defined here, with 0 generic parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:7:16 |
| | |
| LL | pub fn bar1(x: &super::XX) {} |
| | ^^^^ |
| |
| error[E0284]: type annotations needed |
| --> $DIR/trait-impl-wrong-args-count.rs:31:25 |
| | |
| LL | reuse to_reuse::bar2; |
| | ^^^^ cannot infer the value of the const parameter `X` declared on the function `bar2` |
| | |
| note: required by a const generic parameter in `bar2` |
| --> $DIR/trait-impl-wrong-args-count.rs:8:39 |
| | |
| LL | pub fn bar2<A, B, C, D, E, F, const X: usize, const Y: bool>(x: &super::XX) {} |
| | ^^^^^^^^^^^^^^ required by this const generic parameter in `bar2` |
| help: consider specifying the generic arguments |
| | |
| LL | reuse to_reuse::bar2::<A, B, C, D, E, F, X, Y>; |
| | ++++++++++++++++++++++++++ |
| |
| error[E0284]: type annotations needed |
| --> $DIR/trait-impl-wrong-args-count.rs:31:25 |
| | |
| LL | reuse to_reuse::bar2; |
| | ^^^^ cannot infer the value of the const parameter `Y` declared on the function `bar2` |
| | |
| note: required by a const generic parameter in `bar2` |
| --> $DIR/trait-impl-wrong-args-count.rs:8:55 |
| | |
| LL | pub fn bar2<A, B, C, D, E, F, const X: usize, const Y: bool>(x: &super::XX) {} |
| | ^^^^^^^^^^^^^ required by this const generic parameter in `bar2` |
| help: consider specifying the generic arguments |
| | |
| LL | reuse to_reuse::bar2::<A, B, C, D, E, F, X, Y>; |
| | ++++++++++++++++++++++++++ |
| |
| error[E0107]: missing generics for trait `test_2::Trait1` |
| --> $DIR/trait-impl-wrong-args-count.rs:61:21 |
| | |
| LL | reuse <X as Trait1>::bar; |
| | ^^^^^^ expected 2 generic arguments |
| | |
| note: trait defined here, with 2 generic parameters: `A`, `B` |
| --> $DIR/trait-impl-wrong-args-count.rs:52:11 |
| | |
| LL | trait Trait1<A, B> { |
| | ^^^^^^ - - |
| help: add missing generic arguments |
| | |
| LL | reuse <X as Trait1<A, B>>::bar; |
| | ++++++ |
| |
| error[E0107]: associated function takes 1 lifetime argument but 2 lifetime arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:61:30 |
| | |
| LL | reuse <X as Trait1>::bar; |
| | ^^^ |
| | | |
| | expected 1 lifetime argument |
| | help: remove the lifetime argument |
| | |
| note: associated function defined here, with 1 lifetime parameter: `'x` |
| --> $DIR/trait-impl-wrong-args-count.rs:53:12 |
| | |
| LL | fn bar<'x: 'x, AA, BB, const NN: usize>() {} |
| | ^^^ -- |
| |
| error[E0107]: associated function takes 1 lifetime argument but 2 lifetime arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:65:44 |
| | |
| LL | reuse <X as Trait1::<bool, bool>>::bar as bar1; |
| | ^^^ |
| | | |
| | expected 1 lifetime argument |
| | help: remove the lifetime argument |
| | |
| note: associated function defined here, with 1 lifetime parameter: `'x` |
| --> $DIR/trait-impl-wrong-args-count.rs:53:12 |
| | |
| LL | fn bar<'x: 'x, AA, BB, const NN: usize>() {} |
| | ^^^ -- |
| |
| error[E0107]: missing generics for trait `test_2::Trait1` |
| --> $DIR/trait-impl-wrong-args-count.rs:70:21 |
| | |
| LL | reuse <X as Trait1>::bar::<'static, u32, u32, 1> as bar3; |
| | ^^^^^^ expected 2 generic arguments |
| | |
| note: trait defined here, with 2 generic parameters: `A`, `B` |
| --> $DIR/trait-impl-wrong-args-count.rs:52:11 |
| | |
| LL | trait Trait1<A, B> { |
| | ^^^^^^ - - |
| help: add missing generic arguments |
| | |
| LL | reuse <X as Trait1<A, B>>::bar::<'static, u32, u32, 1> as bar3; |
| | ++++++ |
| |
| error[E0107]: missing generics for trait `test_2::Trait1` |
| --> $DIR/trait-impl-wrong-args-count.rs:73:21 |
| | |
| LL | reuse <X as Trait1>::bar as bar4; |
| | ^^^^^^ expected 2 generic arguments |
| | |
| note: trait defined here, with 2 generic parameters: `A`, `B` |
| --> $DIR/trait-impl-wrong-args-count.rs:52:11 |
| | |
| LL | trait Trait1<A, B> { |
| | ^^^^^^ - - |
| help: add missing generic arguments |
| | |
| LL | reuse <X as Trait1<A, B>>::bar as bar4; |
| | ++++++ |
| |
| error[E0107]: associated function takes 0 lifetime arguments but 2 lifetime arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:98:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::bar; |
| | ^^^ |
| | | |
| | expected 0 lifetime arguments |
| | help: remove the lifetime arguments |
| | |
| note: associated function defined here, with 0 lifetime parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:89:12 |
| | |
| LL | fn bar() {} |
| | ^^^ |
| |
| error[E0107]: associated function takes 0 generic arguments but 3 generic arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:98:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::bar; |
| | ^^^ |
| | | |
| | expected 0 generic arguments |
| | help: remove the unnecessary generic arguments |
| | |
| note: associated function defined here, with 0 generic parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:89:12 |
| | |
| LL | fn bar() {} |
| | ^^^ |
| |
| error[E0107]: associated function takes 0 lifetime arguments but 2 lifetime arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:102:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::bar as bar1; |
| | ^^^ |
| | | |
| | expected 0 lifetime arguments |
| | help: remove the lifetime arguments |
| | |
| note: associated function defined here, with 0 lifetime parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:89:12 |
| | |
| LL | fn bar() {} |
| | ^^^ |
| |
| error[E0107]: associated function takes 0 generic arguments but 3 generic arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:102:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::bar as bar1; |
| | ^^^ |
| | | |
| | expected 0 generic arguments |
| | help: remove the unnecessary generic arguments |
| | |
| note: associated function defined here, with 0 generic parameters |
| --> $DIR/trait-impl-wrong-args-count.rs:89:12 |
| | |
| LL | fn bar() {} |
| | ^^^ |
| |
| error[E0282]: type annotations needed |
| --> $DIR/trait-impl-wrong-args-count.rs:106:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::foo as bar2; |
| | ^^^ cannot infer type of the type parameter `X` declared on the associated function `foo` |
| |
| error[E0107]: associated function takes at most 2 generic arguments but 3 generic arguments were supplied |
| --> $DIR/trait-impl-wrong-args-count.rs:109:40 |
| | |
| LL | reuse <X as Trait1::<(), ()>>::foo as bar3; |
| | ^^^ |
| | | |
| | expected at most 2 generic arguments |
| | help: remove the unnecessary generic argument |
| | |
| note: associated function defined here, with at most 2 generic parameters: `X`, `Y` |
| --> $DIR/trait-impl-wrong-args-count.rs:90:12 |
| | |
| LL | fn foo<X, Y>() {} |
| | ^^^ - - |
| |
| error: aborting due to 16 previous errors |
| |
| Some errors have detailed explanations: E0107, E0282, E0284. |
| For more information about an error, try `rustc --explain E0107`. |