1 error[E0038]: the trait `Bar` cannot be made into an object
2 --> $DIR/issue-48027.rs:6:6
5 | - the trait cannot contain associated consts like `X`
8 | ^^^^^^^ the trait `Bar` cannot be made into an object
10 error[E0283]: type annotations needed: cannot resolve `_: Bar`
11 --> $DIR/issue-48027.rs:3:32
14 | --------------- required by `Bar::X`
15 LL | fn return_n(&self) -> [u8; Bar::X];
18 error: aborting due to 2 previous errors
20 Some errors have detailed explanations: E0038, E0283.
21 For more information about an error, try `rustc --explain E0038`.