]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
1 | error[E0038]: the trait `Bar` cannot be made into an object |
2 | --> $DIR/issue-48027.rs:6:6 | |
3 | | | |
4 | LL | const X: usize; | |
5 | | - the trait cannot contain associated consts like `X` | |
6 | ... | |
7 | LL | impl dyn Bar {} | |
8 | | ^^^^^^^ the trait `Bar` cannot be made into an object | |
9 | ||
60c5eb7d | 10 | error[E0283]: type annotations needed |
e74abb32 XL |
11 | --> $DIR/issue-48027.rs:3:32 |
12 | | | |
13 | LL | const X: usize; | |
14 | | --------------- required by `Bar::X` | |
15 | LL | fn return_n(&self) -> [u8; Bar::X]; | |
60c5eb7d XL |
16 | | ^^^^^^ cannot infer type |
17 | | | |
18 | = note: cannot resolve `_: Bar` | |
e74abb32 XL |
19 | |
20 | error: aborting due to 2 previous errors | |
21 | ||
22 | Some errors have detailed explanations: E0038, E0283. | |
23 | For more information about an error, try `rustc --explain E0038`. |