]>
Commit | Line | Data |
---|---|---|
064997fb | 1 | error[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 |
4 | LL | const C: usize; |
5 | | --------------- `A::C` defined here | |
6 | LL | | |
e74abb32 | 7 | LL | fn f() -> ([u8; A::C], [u8; A::C]); |
064997fb | 8 | | ^^^^ cannot refer to the associated constant of trait |
e74abb32 | 9 | |
064997fb | 10 | error[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 |
13 | LL | const C: usize; |
14 | | --------------- `A::C` defined here | |
15 | LL | | |
e74abb32 | 16 | LL | fn f() -> ([u8; A::C], [u8; A::C]); |
064997fb | 17 | | ^^^^ cannot refer to the associated constant of trait |
e74abb32 XL |
18 | |
19 | error: aborting due to 2 previous errors | |
20 | ||
064997fb | 21 | For more information about this error, try `rustc --explain E0790`. |