]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0194.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / error-codes / E0194.stderr
1 error[E0194]: type parameter `T` shadows another type parameter of the same name
2   --> $DIR/E0194.rs:13:26
3    |
4 LL | trait Foo<T> {
5    |           - first `T` declared here
6 LL |     fn do_something(&self) -> T;
7 LL |     fn do_something_else<T: Clone>(&self, bar: T);
8    |                          ^ shadows another type parameter
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0194`.