fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
625 B20 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-62504.rs:18:21
3   |
4LL |         ArrayHolder([0; Self::SIZE])
5   |                     ^^^^^^^^^^^^^^^ expected `X`, found `Self::SIZE`
6   |
7   = note: expected constant `X`
8              found constant `Self::SIZE`
9
10error: unconstrained generic constant
11  --> $DIR/issue-62504.rs:18:25
12   |
13LL |         ArrayHolder([0; Self::SIZE])
14   |                         ^^^^^^^^^^
15   |
16   = help: try adding a `where` bound using this expression: `where [(); Self::SIZE]:`
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0308`.