summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0194.stderr
blob: ab4918a4e27d50d7de8e5c90fafdc0f736f62d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0194]: type parameter `T` shadows another type parameter of the same name
  --> $DIR/E0194.rs:3:26
   |
LL | trait Foo<T> {
   |           - first `T` declared here
LL |     fn do_something(&self) -> T;
LL |     fn do_something_else<T: Clone>(&self, bar: T);
   |                          ^ shadows another type parameter

error: aborting due to previous error

For more information about this error, try `rustc --explain E0194`.