2019-10-29 17:28:39 -07:00
|
|
|
error[E0283]: type annotations needed
|
2019-10-22 17:01:49 +09:00
|
|
|
--> $DIR/issue-63496.rs:4:21
|
|
|
|
|
|
|
|
|
LL | const C: usize;
|
|
|
|
| --------------- required by `A::C`
|
|
|
|
LL |
|
|
|
|
LL | fn f() -> ([u8; A::C], [u8; A::C]);
|
2019-12-30 21:15:40 -08:00
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| cannot infer type
|
|
|
|
| help: use the fully qualified path to an implementation: `<Type as A>::C`
|
2019-10-29 17:28:39 -07:00
|
|
|
|
|
2020-04-04 19:47:50 -07:00
|
|
|
= note: cannot satisfy `_: A`
|
2019-12-30 21:15:40 -08:00
|
|
|
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
2019-10-22 17:01:49 +09:00
|
|
|
|
2019-10-29 17:28:39 -07:00
|
|
|
error[E0283]: type annotations needed
|
2019-10-22 17:01:49 +09:00
|
|
|
--> $DIR/issue-63496.rs:4:33
|
|
|
|
|
|
|
|
|
LL | const C: usize;
|
|
|
|
| --------------- required by `A::C`
|
|
|
|
LL |
|
|
|
|
LL | fn f() -> ([u8; A::C], [u8; A::C]);
|
2019-12-30 21:15:40 -08:00
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| cannot infer type
|
|
|
|
| help: use the fully qualified path to an implementation: `<Type as A>::C`
|
2019-10-29 17:28:39 -07:00
|
|
|
|
|
2020-04-04 19:47:50 -07:00
|
|
|
= note: cannot satisfy `_: A`
|
2019-12-30 21:15:40 -08:00
|
|
|
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
|
2019-10-22 17:01:49 +09:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|