]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-52082-type-param-shadows-existing-type.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / typeck / issue-52082-type-param-shadows-existing-type.stderr
1 error[E0609]: no field `x` on type `&Point`
2   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:11
3    |
4 LL |     fn equals_ref<Point>(a: &Point, b: &Point) -> bool
5    |                   ----- type parameter 'Point' declared here
6 LL |     {
7 LL |         a.x == b.x && a.y == b.y
8    |           ^
9
10 error[E0609]: no field `x` on type `&Point`
11   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:18
12    |
13 LL |     fn equals_ref<Point>(a: &Point, b: &Point) -> bool
14    |                   ----- type parameter 'Point' declared here
15 LL |     {
16 LL |         a.x == b.x && a.y == b.y
17    |                  ^
18
19 error[E0609]: no field `y` on type `&Point`
20   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:25
21    |
22 LL |     fn equals_ref<Point>(a: &Point, b: &Point) -> bool
23    |                   ----- type parameter 'Point' declared here
24 LL |     {
25 LL |         a.x == b.x && a.y == b.y
26    |                         ^
27
28 error[E0609]: no field `y` on type `&Point`
29   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:31:32
30    |
31 LL |     fn equals_ref<Point>(a: &Point, b: &Point) -> bool
32    |                   ----- type parameter 'Point' declared here
33 LL |     {
34 LL |         a.x == b.x && a.y == b.y
35    |                                ^
36
37 error[E0609]: no field `x` on type `Point`
38   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:11
39    |
40 LL |     fn equals_val<Point>(a: Point, b: Point) -> bool
41    |                   ----- type parameter 'Point' declared here
42 LL |     {
43 LL |         a.x == b.x && a.y == b.y
44    |           ^
45
46 error[E0609]: no field `x` on type `Point`
47   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:18
48    |
49 LL |     fn equals_val<Point>(a: Point, b: Point) -> bool
50    |                   ----- type parameter 'Point' declared here
51 LL |     {
52 LL |         a.x == b.x && a.y == b.y
53    |                  ^
54
55 error[E0609]: no field `y` on type `Point`
56   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:25
57    |
58 LL |     fn equals_val<Point>(a: Point, b: Point) -> bool
59    |                   ----- type parameter 'Point' declared here
60 LL |     {
61 LL |         a.x == b.x && a.y == b.y
62    |                         ^
63
64 error[E0609]: no field `y` on type `Point`
65   --> $DIR/issue-52082-type-param-shadows-existing-type.rs:39:32
66    |
67 LL |     fn equals_val<Point>(a: Point, b: Point) -> bool
68    |                   ----- type parameter 'Point' declared here
69 LL |     {
70 LL |         a.x == b.x && a.y == b.y
71    |                                ^
72
73 error: aborting due to 8 previous errors
74
75 For more information about this error, try `rustc --explain E0609`.