]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | error[E0191]: the value of the associated type `B` (from trait `Foo`) must be specified |
2 | --> $DIR/associated-types-incomplete-object.rs:23:30 | |
b7449926 | 3 | | |
a1dfa0c6 | 4 | LL | type B; |
064997fb | 5 | | ------ `B` defined here |
a1dfa0c6 | 6 | ... |
dc9dc135 | 7 | LL | let b = &42isize as &dyn Foo<A=usize>; |
dfeec247 | 8 | | ^^^^^^^^^^^^ help: specify the associated type: `Foo<A=usize, B = Type>` |
b7449926 | 9 | |
dfeec247 XL |
10 | error[E0191]: the value of the associated type `A` (from trait `Foo`) must be specified |
11 | --> $DIR/associated-types-incomplete-object.rs:26:30 | |
b7449926 | 12 | | |
a1dfa0c6 | 13 | LL | type A; |
064997fb | 14 | | ------ `A` defined here |
a1dfa0c6 | 15 | ... |
dc9dc135 | 16 | LL | let c = &42isize as &dyn Foo<B=char>; |
dfeec247 | 17 | | ^^^^^^^^^^^ help: specify the associated type: `Foo<B=char, A = Type>` |
b7449926 | 18 | |
dfeec247 XL |
19 | error[E0191]: the value of the associated types `A` (from trait `Foo`), `B` (from trait `Foo`) must be specified |
20 | --> $DIR/associated-types-incomplete-object.rs:29:30 | |
b7449926 | 21 | | |
a1dfa0c6 | 22 | LL | type A; |
064997fb | 23 | | ------ `A` defined here |
a1dfa0c6 | 24 | LL | type B; |
064997fb | 25 | | ------ `B` defined here |
a1dfa0c6 | 26 | ... |
dc9dc135 | 27 | LL | let d = &42isize as &dyn Foo; |
dfeec247 | 28 | | ^^^ help: specify the associated types: `Foo<A = Type, B = Type>` |
b7449926 | 29 | |
a1dfa0c6 | 30 | error: aborting due to 3 previous errors |
b7449926 XL |
31 | |
32 | For more information about this error, try `rustc --explain E0191`. |