Closed
Description
This ticket covers the bonus portion of #35280 as part of #35233.
It takes the original error message updates and expands it to:
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
I made this ticket in order to separate the improvement from the original issue.