fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
684 B25 linesraw
1error[E0283]: type annotations needed
2  --> $DIR/issue-63496.rs:4:21
3   |
4LL |     const C: usize;
5   |     --------------- required by `A::C`
6LL | 
7LL |     fn f() -> ([u8; A::C], [u8; A::C]);
8   |                     ^^^^ cannot infer type
9   |
10   = note: cannot resolve `_: A`
11
12error[E0283]: type annotations needed
13  --> $DIR/issue-63496.rs:4:33
14   |
15LL |     const C: usize;
16   |     --------------- required by `A::C`
17LL | 
18LL |     fn f() -> ([u8; A::C], [u8; A::C]);
19   |                                 ^^^^ cannot infer type
20   |
21   = note: cannot resolve `_: A`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0283`.