1 error[E0609]: no field `x` on type `&Point`
2 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:11
4 LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool
5 | ----- type parameter 'Point' declared here
7 LL | a.x == b.x && a.y == b.y
10 error[E0609]: no field `x` on type `&Point`
11 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:18
13 LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool
14 | ----- type parameter 'Point' declared here
16 LL | a.x == b.x && a.y == b.y
19 error[E0609]: no field `y` on type `&Point`
20 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:25
22 LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool
23 | ----- type parameter 'Point' declared here
25 LL | a.x == b.x && a.y == b.y
28 error[E0609]: no field `y` on type `&Point`
29 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:32
31 LL | fn equals_ref<Point>(a: &Point, b: &Point) -> bool
32 | ----- type parameter 'Point' declared here
34 LL | a.x == b.x && a.y == b.y
37 error[E0609]: no field `x` on type `Point`
38 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:11
40 LL | fn equals_val<Point>(a: Point, b: Point) -> bool
41 | ----- type parameter 'Point' declared here
43 LL | a.x == b.x && a.y == b.y
46 error[E0609]: no field `x` on type `Point`
47 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:18
49 LL | fn equals_val<Point>(a: Point, b: Point) -> bool
50 | ----- type parameter 'Point' declared here
52 LL | a.x == b.x && a.y == b.y
55 error[E0609]: no field `y` on type `Point`
56 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:25
58 LL | fn equals_val<Point>(a: Point, b: Point) -> bool
59 | ----- type parameter 'Point' declared here
61 LL | a.x == b.x && a.y == b.y
64 error[E0609]: no field `y` on type `Point`
65 --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:32
67 LL | fn equals_val<Point>(a: Point, b: Point) -> bool
68 | ----- type parameter 'Point' declared here
70 LL | a.x == b.x && a.y == b.y
73 error: aborting due to 8 previous errors
75 For more information about this error, try `rustc --explain E0609`.