File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
src/test/ui/associated-const Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ trait A {
2+ const C : usize ;
3+
4+ fn f ( ) -> ( [ u8 ; A :: C ] , [ u8 ; A :: C ] ) ;
5+ //~^ ERROR: type annotations needed: cannot resolve
6+ //~| ERROR: type annotations needed: cannot resolve
7+ }
8+
9+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error[E0283]: type annotations needed: cannot resolve `_: A`
2+ --> $DIR/issue-63496.rs:4:21
3+ |
4+ LL | const C: usize;
5+ | --------------- required by `A::C`
6+ LL |
7+ LL | fn f() -> ([u8; A::C], [u8; A::C]);
8+ | ^^^^
9+
10+ error[E0283]: type annotations needed: cannot resolve `_: A`
11+ --> $DIR/issue-63496.rs:4:33
12+ |
13+ LL | const C: usize;
14+ | --------------- required by `A::C`
15+ LL |
16+ LL | fn f() -> ([u8; A::C], [u8; A::C]);
17+ | ^^^^
18+
19+ error: aborting due to 2 previous errors
20+
21+ For more information about this error, try `rustc --explain E0283`.
You can’t perform that action at this time.
0 commit comments