fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0283]: type annotations needed 2 --> $DIR/issue-63496.rs:4:21 3 | 4LL | const C: usize; 5 | --------------- required by `A::C` 6LL | 7LL | fn f() -> ([u8; A::C], [u8; A::C]); 8 | ^^^^ 9 | | 10 | cannot infer type 11 | help: use the fully qualified path to an implementation: `<Type as A>::C` 12 | 13 = note: cannot resolve `_: A` 14 = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl` 15 16error[E0283]: type annotations needed 17 --> $DIR/issue-63496.rs:4:33 18 | 19LL | const C: usize; 20 | --------------- required by `A::C` 21LL | 22LL | fn f() -> ([u8; A::C], [u8; A::C]); 23 | ^^^^ 24 | | 25 | cannot infer type 26 | help: use the fully qualified path to an implementation: `<Type as A>::C` 27 | 28 = note: cannot resolve `_: A` 29 = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl` 30 31error: aborting due to 2 previous errors 32 33For more information about this error, try `rustc --explain E0283`.