Moves changes to explicit_preds_of/inferred_outlives_of/generics_of

This commit is contained in:
Ellen 2021-07-10 14:53:37 +01:00
parent 05dcb7874a
commit b44be27999
4 changed files with 71 additions and 33 deletions

View file

@ -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}]:`