Skip to content

Commit 7a85c43

Browse files
committed
Add test for issue-63496
1 parent 93fab98 commit 7a85c43

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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`.

0 commit comments

Comments
 (0)