]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/issue-63496.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / associated-consts / issue-63496.stderr
1 error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
2   --> $DIR/issue-63496.rs:4:21
3    |
4 LL |     const C: usize;
5    |     --------------- `A::C` defined here
6 LL |
7 LL |     fn f() -> ([u8; A::C], [u8; A::C]);
8    |                     ^^^^ cannot refer to the associated constant of trait
9
10 error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
11   --> $DIR/issue-63496.rs:4:33
12    |
13 LL |     const C: usize;
14    |     --------------- `A::C` defined here
15 LL |
16 LL |     fn f() -> ([u8; A::C], [u8; A::C]);
17    |                                 ^^^^ cannot refer to the associated constant of trait
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0790`.