We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a59e94 + fd2982c commit 66726fdCopy full SHA for 66726fd
compiler/rustc_error_codes/src/error_codes/E0191.md
@@ -7,8 +7,8 @@ trait Trait {
7
type Bar;
8
}
9
10
-type Foo = Trait; // error: the value of the associated type `Bar` (from
11
- // the trait `Trait`) must be specified
+type Foo = dyn Trait; // error: the value of the associated type `Bar` (from
+ // the trait `Trait`) must be specified
12
```
13
14
Trait objects need to have all associated types specified. Please verify that
@@ -20,5 +20,5 @@ trait Trait {
20
21
22
23
-type Foo = Trait<Bar=i32>; // ok!
+type Foo = dyn Trait<Bar=i32>; // ok!
24
0 commit comments