|
1 | 1 | error[E0609]: no field `x` on type `&Point`
|
2 |
| - --> $DIR/issue-52082.rs:31:11 |
| 2 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:11 |
3 | 3 | |
|
| 4 | +LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
| 5 | + | ----- type parameter 'Point' declared here |
| 6 | +LL | { |
4 | 7 | LL | a.x == b.x && a.y == b.y
|
5 | 8 | | ^
|
6 |
| - | |
7 |
| -note: Type parameter 'Point' was declared here |
8 |
| - --> $DIR/issue-52082.rs:29:19 |
9 |
| - | |
10 |
| -LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
11 |
| - | ^^^^^ |
12 | 9 |
|
13 | 10 | error[E0609]: no field `x` on type `&Point`
|
14 |
| - --> $DIR/issue-52082.rs:31:18 |
| 11 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:18 |
15 | 12 | |
|
| 13 | +LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
| 14 | + | ----- type parameter 'Point' declared here |
| 15 | +LL | { |
16 | 16 | LL | a.x == b.x && a.y == b.y
|
17 | 17 | | ^
|
18 |
| - | |
19 |
| -note: Type parameter 'Point' was declared here |
20 |
| - --> $DIR/issue-52082.rs:29:19 |
21 |
| - | |
22 |
| -LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
23 |
| - | ^^^^^ |
24 | 18 |
|
25 | 19 | error[E0609]: no field `y` on type `&Point`
|
26 |
| - --> $DIR/issue-52082.rs:31:25 |
| 20 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:25 |
27 | 21 | |
|
| 22 | +LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
| 23 | + | ----- type parameter 'Point' declared here |
| 24 | +LL | { |
28 | 25 | LL | a.x == b.x && a.y == b.y
|
29 | 26 | | ^
|
30 |
| - | |
31 |
| -note: Type parameter 'Point' was declared here |
32 |
| - --> $DIR/issue-52082.rs:29:19 |
33 |
| - | |
34 |
| -LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
35 |
| - | ^^^^^ |
36 | 27 |
|
37 | 28 | error[E0609]: no field `y` on type `&Point`
|
38 |
| - --> $DIR/issue-52082.rs:31:32 |
| 29 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:32 |
39 | 30 | |
|
| 31 | +LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
| 32 | + | ----- type parameter 'Point' declared here |
| 33 | +LL | { |
40 | 34 | LL | a.x == b.x && a.y == b.y
|
41 | 35 | | ^
|
42 |
| - | |
43 |
| -note: Type parameter 'Point' was declared here |
44 |
| - --> $DIR/issue-52082.rs:29:19 |
45 |
| - | |
46 |
| -LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool |
47 |
| - | ^^^^^ |
48 | 36 |
|
49 | 37 | error[E0609]: no field `x` on type `Point`
|
50 |
| - --> $DIR/issue-52082.rs:39:11 |
| 38 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:11 |
51 | 39 | |
|
| 40 | +LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
| 41 | + | ----- type parameter 'Point' declared here |
| 42 | +LL | { |
52 | 43 | LL | a.x == b.x && a.y == b.y
|
53 | 44 | | ^
|
54 |
| - | |
55 |
| -note: Type parameter 'Point' was declared here |
56 |
| - --> $DIR/issue-52082.rs:37:19 |
57 |
| - | |
58 |
| -LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
59 |
| - | ^^^^^ |
60 | 45 |
|
61 | 46 | error[E0609]: no field `x` on type `Point`
|
62 |
| - --> $DIR/issue-52082.rs:39:18 |
| 47 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:18 |
63 | 48 | |
|
| 49 | +LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
| 50 | + | ----- type parameter 'Point' declared here |
| 51 | +LL | { |
64 | 52 | LL | a.x == b.x && a.y == b.y
|
65 | 53 | | ^
|
66 |
| - | |
67 |
| -note: Type parameter 'Point' was declared here |
68 |
| - --> $DIR/issue-52082.rs:37:19 |
69 |
| - | |
70 |
| -LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
71 |
| - | ^^^^^ |
72 | 54 |
|
73 | 55 | error[E0609]: no field `y` on type `Point`
|
74 |
| - --> $DIR/issue-52082.rs:39:25 |
| 56 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:25 |
75 | 57 | |
|
| 58 | +LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
| 59 | + | ----- type parameter 'Point' declared here |
| 60 | +LL | { |
76 | 61 | LL | a.x == b.x && a.y == b.y
|
77 | 62 | | ^
|
78 |
| - | |
79 |
| -note: Type parameter 'Point' was declared here |
80 |
| - --> $DIR/issue-52082.rs:37:19 |
81 |
| - | |
82 |
| -LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
83 |
| - | ^^^^^ |
84 | 63 |
|
85 | 64 | error[E0609]: no field `y` on type `Point`
|
86 |
| - --> $DIR/issue-52082.rs:39:32 |
| 65 | + --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:32 |
87 | 66 | |
|
| 67 | +LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
| 68 | + | ----- type parameter 'Point' declared here |
| 69 | +LL | { |
88 | 70 | LL | a.x == b.x && a.y == b.y
|
89 | 71 | | ^
|
90 |
| - | |
91 |
| -note: Type parameter 'Point' was declared here |
92 |
| - --> $DIR/issue-52082.rs:37:19 |
93 |
| - | |
94 |
| -LL | fn equals_val<Point>(a: Point, b: Point) -> bool |
95 |
| - | ^^^^^ |
96 | 72 |
|
97 | 73 | error: aborting due to 8 previous errors
|
98 | 74 |
|
|
0 commit comments