Taint infcx when reporting errors
This commit is contained in:
parent
a183989e88
commit
3594a19f2a
36 changed files with 470 additions and 157 deletions
|
@ -5,10 +5,10 @@ LL | generics_of_parent_impl_trait::foo([()]);
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `foo`
|
||||
|
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/auxiliary/generics_of_parent_impl_trait.rs:5:48
|
||||
--> $DIR/auxiliary/generics_of_parent_impl_trait.rs:5:12
|
||||
|
|
||||
LL | pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
|
||||
| ^^^^^ required by this bound in `foo`
|
||||
| ^^^^^^^^^^^^^^ required by this bound in `foo`
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue