error[E0283]: type annotations needed --> $DIR/issue-63496.rs:4:21 | LL | fn f() -> ([u8; A::C], [u8; A::C]); | ^^^^ | | | cannot infer type | help: use the fully qualified path to an implementation: `::C` | = note: cannot satisfy `_: A` = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl` note: required by `A::C` --> $DIR/issue-63496.rs:2:5 | LL | const C: usize; | ^^^^^^^^^^^^^^^ error[E0283]: type annotations needed --> $DIR/issue-63496.rs:4:33 | LL | fn f() -> ([u8; A::C], [u8; A::C]); | ^^^^ | | | cannot infer type | help: use the fully qualified path to an implementation: `::C` | = note: cannot satisfy `_: A` = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl` note: required by `A::C` --> $DIR/issue-63496.rs:2:5 | LL | const C: usize; | ^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0283`.