File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ error[E0194]: type parameter `T` shadows another type parameter of the same name
2
+ --> $DIR/shadowed-type-parameter.rs:30:27
3
+ |
4
+ 27 | trait Bar<T> {
5
+ | - first `T` declared here
6
+ ...
7
+ 30 | fn shadow_in_required<T>(&self);
8
+ | ^ shadows another type parameter
9
+
10
+ error[E0194]: type parameter `T` shadows another type parameter of the same name
11
+ --> $DIR/shadowed-type-parameter.rs:33:27
12
+ |
13
+ 27 | trait Bar<T> {
14
+ | - first `T` declared here
15
+ ...
16
+ 33 | fn shadow_in_provided<T>(&self) {}
17
+ | ^ shadows another type parameter
18
+
19
+ error[E0194]: type parameter `T` shadows another type parameter of the same name
20
+ --> $DIR/shadowed-type-parameter.rs:18:25
21
+ |
22
+ 17 | impl<T> Foo<T> {
23
+ | - first `T` declared here
24
+ 18 | fn shadow_in_method<T>(&self) {}
25
+ | ^ shadows another type parameter
26
+
27
+ error: aborting due to previous error(s)
28
+
You can’t perform that action at this time.
0 commit comments