Closed
Description
From: src/test/compile-fail/E0194.rs
Error E0194 needs a span_label, updating it from:
error[E0194]: type parameter `T` shadows another type parameter of the same name
--> src/test/compile-fail/E0194.rs:13:5
|
13 | fn do_something_else<T: Clone>(&self, bar: T); //~ ERROR E0194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To:
error[E0194]: type parameter `T` shadows another type parameter of the same name
--> src/test/compile-fail/E0194.rs:13:5
|
13 | fn do_something_else<T: Clone>(&self, bar: T); //~ ERROR E0194
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` shadows another type parameter
Bonus: the span can be shortened and we can reference the other T
error[E0194]: type parameter `T` shadows another type parameter of the same name
--> src/test/compile-fail/E0194.rs:13:5
|
11 | trait Foo<T> {
| - first `T` declared here
12 | fn do_something(&self) -> T;
13 | fn do_something_else<T: Clone>(&self, bar: T); //~ ERROR E0194
| ^ shadows another type parameter