Moves changes to explicit_preds_of/inferred_outlives_of/generics_of
This commit is contained in:
parent
05dcb7874a
commit
b44be27999
4 changed files with 71 additions and 33 deletions
|
|
@ -8,5 +8,14 @@ LL | pub fn foo<const N1: usize>() -> Bar<N1> { loop {} }
|
|||
|
|
||||
= help: try adding a `where` bound using this expression: `where [(); { N + 1 }]:`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: unconstrained generic constant
|
||||
--> $DIR/cec-build-subst-ice.rs:15:8
|
||||
|
|
||||
LL | type Alias<T, const N: usize, const NP: usize = {N+1usize}> = [T; NP];
|
||||
| ---------- required by this bound in `Alias::{constant#0}`
|
||||
LL | fn alias<T, const N: usize>(_: [T; N], _: T)
|
||||
LL | -> Alias<T, N>
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= help: try adding a `where` bound using this expression: `where [(); {N+1usize}]:`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue