error[E0283]: type annotations needed
--> $DIR/issue-48027.rs:3:32
|
-LL | const X: usize;
- | --------------- required by `Bar::X`
LL | fn return_n(&self) -> [u8; Bar::X];
| ^^^^^^
| |
|
= note: cannot satisfy `_: Bar`
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
+note: required by `Bar::X`
+ --> $DIR/issue-48027.rs:2:5
+ |
+LL | const X: usize;
+ | ^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors