]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/fn_with_two_const_inputs.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / const-generics / fn_with_two_const_inputs.stderr
1 error: unconstrained generic constant
2   --> $DIR/fn_with_two_const_inputs.rs:12:5
3    |
4 LL |     bar()
5    |     ^^^
6    |
7    = help: try adding a `where` bound using this expression: `where [(); N + 1]:`
8 note: required by a bound in `bar`
9   --> $DIR/fn_with_two_const_inputs.rs:18:10
10    |
11 LL | fn bar<const N: usize>() -> [(); N]
12    |    --- required by a bound in this
13 LL | where
14 LL |     [(); N + 1]:,
15    |          ^^^^^ required by this bound in `bar`
16
17 error: aborting due to previous error
18