fork/rust

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

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

master
646 B22 linesraw
1error[E0284]: type annotations needed
2  --> $DIR/unify_with_nested_expr.rs:8:5
3   |
4LL |     bar();
5   |     ^^^ cannot infer the value of the const parameter `N` declared on the function `bar`
6   |
7note: required by a bound in `bar`
8  --> $DIR/unify_with_nested_expr.rs:14:10
9   |
10LL | fn bar<const N: usize>()
11   |    --- required by a bound in this function
12LL | where
13LL |     [(); N + 1]:,
14   |          ^^^^^ required by this bound in `bar`
15help: consider specifying the generic argument
16   |
17LL |     bar::<N>();
18   |        +++++
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0284`.