1
Fork 0

Taint infcx when reporting errors

This commit is contained in:
Oli Scherer 2024-06-17 08:34:26 +00:00
parent a183989e88
commit 3594a19f2a
36 changed files with 470 additions and 157 deletions

View file

@ -5,13 +5,10 @@ LL | bar();
| ^^^ cannot infer the value of the const parameter `N` declared on the function `bar`
|
note: required by a bound in `bar`
--> $DIR/unify_with_nested_expr.rs:14:10
--> $DIR/unify_with_nested_expr.rs:12:8
|
LL | fn bar<const N: usize>()
| --- required by a bound in this function
LL | where
LL | [(); N + 1]:,
| ^^^^^ required by this bound in `bar`
| ^^^^^^^^^^^^^^ required by this bound in `bar`
help: consider specifying the generic argument
|
LL | bar::<N>();