]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | // Test that a partially specified trait object with unspecified associated |
9346a6ac | 2 | // type does not type-check. |
1a4d82fc JJ |
3 | |
4 | trait Foo { | |
5 | type A; | |
85aaf69f SL |
6 | |
7 | fn dummy(&self) { } | |
223e47cc LB |
8 | } |
9 | ||
dc9dc135 | 10 | fn bar(x: &dyn Foo) {} |
dfeec247 | 11 | //~^ ERROR the associated type `A` (from trait `Foo`) must be specified |
1a4d82fc | 12 | |
223e47cc | 13 | pub fn main() {} |