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,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