]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0191.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0191.md
1 Trait objects need to have all associated types specified. Erroneous code
2 example:
3
4 ```compile_fail,E0191
5 trait Trait {
6     type Bar;
7 }
8
9 type Foo = Trait; // error: the value of the associated type `Bar` (from
10                   //        the trait `Trait`) must be specified
11 ```
12
13 Please verify you specified all associated types of the trait and that you
14 used the right trait. Example:
15
16 ```
17 trait Trait {
18     type Bar;
19 }
20
21 type Foo = Trait<Bar=i32>; // ok!
22 ```