We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4eb30bc + fd2982c commit 8a10d2aCopy full SHA for 8a10d2a
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