|
1 | 1 | error[E0229]: associated type bindings are not allowed here
|
2 |
| - --> $DIR/associated-types-eq-2.rs:16:30 |
| 2 | + --> $DIR/associated-types-eq-2.rs:17:31 |
3 | 3 | |
|
4 |
| -LL | fn baz<I: Foo>(x: &<I as Foo<A=Bar>>::A) {} |
5 |
| - | ^^^^^ associated type not allowed here |
| 4 | +LL | fn baz<I: Foo>(_x: &<I as Foo<A=Bar>>::A) {} |
| 5 | + | ^^^^^ associated type not allowed here |
| 6 | + | |
| 7 | +help: to use `Bar` as a generic argument specify it directly |
| 8 | + | |
| 9 | +LL | fn baz<I: Foo>(_x: &<I as Foo<Bar>>::A) {} |
| 10 | + | ~~~ |
| 11 | + |
| 12 | +error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied |
| 13 | + --> $DIR/associated-types-eq-2.rs:24:6 |
| 14 | + | |
| 15 | +LL | impl Tr1<T1 = String> for Bar { |
| 16 | + | ^^^ expected 1 generic argument |
| 17 | + | |
| 18 | +note: trait defined here, with 1 generic parameter: `T1` |
| 19 | + --> $DIR/associated-types-eq-2.rs:21:7 |
| 20 | + | |
| 21 | +LL | trait Tr1<T1> { |
| 22 | + | ^^^ -- |
| 23 | +help: add missing generic argument |
| 24 | + | |
| 25 | +LL | impl Tr1<T1, T1 = String> for Bar { |
| 26 | + | +++ |
| 27 | + |
| 28 | +error[E0229]: associated type bindings are not allowed here |
| 29 | + --> $DIR/associated-types-eq-2.rs:24:10 |
| 30 | + | |
| 31 | +LL | impl Tr1<T1 = String> for Bar { |
| 32 | + | ^^^^^^^^^^^ associated type not allowed here |
| 33 | + | |
| 34 | +help: to use `String` as a generic argument specify it directly |
| 35 | + | |
| 36 | +LL | impl Tr1<String> for Bar { |
| 37 | + | ~~~~~~ |
| 38 | + |
| 39 | +error[E0107]: trait takes 3 generic arguments but 1 generic argument was supplied |
| 40 | + --> $DIR/associated-types-eq-2.rs:34:6 |
| 41 | + | |
| 42 | +LL | impl Tr3<i32, T2 = Qux, T3 = usize> for Bar { |
| 43 | + | ^^^ --- supplied 1 generic argument |
| 44 | + | | |
| 45 | + | expected 3 generic arguments |
| 46 | + | |
| 47 | +note: trait defined here, with 3 generic parameters: `T1`, `T2`, `T3` |
| 48 | + --> $DIR/associated-types-eq-2.rs:29:7 |
| 49 | + | |
| 50 | +LL | trait Tr3<T1, T2, T3> { |
| 51 | + | ^^^ -- -- -- |
| 52 | +help: add missing generic arguments |
| 53 | + | |
| 54 | +LL | impl Tr3<i32, T2, T3, T2 = Qux, T3 = usize> for Bar { |
| 55 | + | ++++++++ |
| 56 | + |
| 57 | +error[E0229]: associated type bindings are not allowed here |
| 58 | + --> $DIR/associated-types-eq-2.rs:34:15 |
| 59 | + | |
| 60 | +LL | impl Tr3<i32, T2 = Qux, T3 = usize> for Bar { |
| 61 | + | ^^^^^^^^ associated type not allowed here |
| 62 | + | |
| 63 | +help: to use `Qux` as a generic argument specify it directly |
| 64 | + | |
| 65 | +LL | impl Tr3<i32, Qux, T3 = usize> for Bar { |
| 66 | + | ~~~ |
| 67 | + |
| 68 | +error[E0107]: trait takes 3 generic arguments but 2 generic arguments were supplied |
| 69 | + --> $DIR/associated-types-eq-2.rs:42:6 |
| 70 | + | |
| 71 | +LL | impl Tr3<i32, Qux, T3 = Generic<i32>> for Bar { |
| 72 | + | ^^^ --- --- supplied 2 generic arguments |
| 73 | + | | |
| 74 | + | expected 3 generic arguments |
| 75 | + | |
| 76 | +note: trait defined here, with 3 generic parameters: `T1`, `T2`, `T3` |
| 77 | + --> $DIR/associated-types-eq-2.rs:29:7 |
| 78 | + | |
| 79 | +LL | trait Tr3<T1, T2, T3> { |
| 80 | + | ^^^ -- -- -- |
| 81 | +help: add missing generic argument |
| 82 | + | |
| 83 | +LL | impl Tr3<i32, Qux, T3, T3 = Generic<i32>> for Bar { |
| 84 | + | ++++ |
| 85 | + |
| 86 | +error[E0229]: associated type bindings are not allowed here |
| 87 | + --> $DIR/associated-types-eq-2.rs:42:20 |
| 88 | + | |
| 89 | +LL | impl Tr3<i32, Qux, T3 = Generic<i32>> for Bar { |
| 90 | + | ^^^^^^^^^^^^^^^^^ associated type not allowed here |
| 91 | + | |
| 92 | +help: to use `Generic<i32>` as a generic argument specify it directly |
| 93 | + | |
| 94 | +LL | impl Tr3<i32, Qux, Generic<i32>> for Bar { |
| 95 | + | ~~~~~~~~~~~~ |
6 | 96 |
|
7 |
| -error: aborting due to 1 previous error |
| 97 | +error: aborting due to 7 previous errors |
8 | 98 |
|
9 |
| -For more information about this error, try `rustc --explain E0229`. |
| 99 | +Some errors have detailed explanations: E0107, E0229. |
| 100 | +For more information about an error, try `rustc --explain E0107`. |
0 commit comments