]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/issue-63496.stderr
Auto merge of #88540 - ibraheemdev:swap-unchecked, r=kennytm
[rust.git] / src / test / ui / associated-consts / issue-63496.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/issue-63496.rs:4:21
3    |
4 LL |     fn f() -> ([u8; A::C], [u8; A::C]);
5    |                     ^^^^
6    |                     |
7    |                     cannot infer type
8    |                     help: use the fully qualified path to an implementation: `<Type as A>::C`
9    |
10    = note: cannot satisfy `_: A`
11    = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
12 note: required by `A::C`
13   --> $DIR/issue-63496.rs:2:5
14    |
15 LL |     const C: usize;
16    |     ^^^^^^^^^^^^^^^
17
18 error[E0283]: type annotations needed
19   --> $DIR/issue-63496.rs:4:33
20    |
21 LL |     fn f() -> ([u8; A::C], [u8; A::C]);
22    |                                 ^^^^
23    |                                 |
24    |                                 cannot infer type
25    |                                 help: use the fully qualified path to an implementation: `<Type as A>::C`
26    |
27    = note: cannot satisfy `_: A`
28    = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
29 note: required by `A::C`
30   --> $DIR/issue-63496.rs:2:5
31    |
32 LL |     const C: usize;
33    |     ^^^^^^^^^^^^^^^
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0283`.