Taint infcx when reporting errors
This commit is contained in:
parent
a183989e88
commit
3594a19f2a
36 changed files with 470 additions and 157 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue