You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0403]: the name `T` is already used for a type parameter in this type parameter list
--> src/test/compile-fail/E0403.rs:11:11
|
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
| ^
To:
error[E0403]: the name `T` is already used for a type parameter in this type parameter list
--> src/test/compile-fail/E0403.rs:11:11
|
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
| ^ already used
Bonus: Add a span_label for the conflicting first use:
error[E0403]: the name `T` is already used for a type parameter in this type parameter list
--> src/test/compile-fail/E0403.rs:11:11
|
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
| - ^ already used
| |
| first use of `T`
The text was updated successfully, but these errors were encountered:
From: src/test/compile-fail/E0403.rs
E0403 needs a span_label, updating it from:
To:
Bonus: Add a span_label for the conflicting first use:
The text was updated successfully, but these errors were encountered: