rust/src/test/ui/associated-consts/issue-63496.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-10-29 19:28:39 -05:00
error[E0283]: type annotations needed
2019-10-22 03:01:49 -05:00
--> $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: `<Type as A>::C`
2019-10-29 19:28:39 -05:00
|
2020-04-04 21:47:50 -05:00
= note: cannot satisfy `_: A`
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
2019-10-22 03:01:49 -05:00
2019-10-29 19:28:39 -05:00
error[E0283]: type annotations needed
2019-10-22 03:01:49 -05:00
--> $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: `<Type as A>::C`
2019-10-29 19:28:39 -05:00
|
2020-04-04 21:47:50 -05:00
= note: cannot satisfy `_: A`
= note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
2019-10-22 03:01:49 -05:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0283`.