]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-consts/issue-63496.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / associated-consts / issue-63496.stderr
CommitLineData
064997fb 1error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
e74abb32
XL
2 --> $DIR/issue-63496.rs:4:21
3 |
064997fb
FG
4LL | const C: usize;
5 | --------------- `A::C` defined here
6LL |
e74abb32 7LL | fn f() -> ([u8; A::C], [u8; A::C]);
064997fb 8 | ^^^^ cannot refer to the associated constant of trait
e74abb32 9
064997fb 10error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
e74abb32
XL
11 --> $DIR/issue-63496.rs:4:33
12 |
064997fb
FG
13LL | const C: usize;
14 | --------------- `A::C` defined here
15LL |
e74abb32 16LL | fn f() -> ([u8; A::C], [u8; A::C]);
064997fb 17 | ^^^^ cannot refer to the associated constant of trait
e74abb32
XL
18
19error: aborting due to 2 previous errors
20
064997fb 21For more information about this error, try `rustc --explain E0790`.