@@ -63,25 +63,25 @@ fn this_crate() {
63
63
let c = a:: C ( 2 , 3 ) ; //~ ERROR: cannot invoke tuple struct constructor
64
64
let d = a:: D ( 4 ) ;
65
65
66
- let a:: A ( ( ) ) = a; //~ ERROR: field #1 of struct `a::A` is private
66
+ let a:: A ( ( ) ) = a; //~ ERROR: field #0 of struct `a::A` is private
67
67
let a:: A ( _) = a;
68
- match a { a:: A ( ( ) ) => { } } //~ ERROR: field #1 of struct `a::A` is private
68
+ match a { a:: A ( ( ) ) => { } } //~ ERROR: field #0 of struct `a::A` is private
69
69
match a { a:: A ( _) => { } }
70
70
71
71
let a:: B ( _) = b;
72
- let a:: B ( _b) = b; //~ ERROR: field #1 of struct `a::B` is private
72
+ let a:: B ( _b) = b; //~ ERROR: field #0 of struct `a::B` is private
73
73
match b { a:: B ( _) => { } }
74
- match b { a:: B ( _b) => { } } //~ ERROR: field #1 of struct `a::B` is private
75
- match b { a:: B ( 1 ) => { } a:: B ( _) => { } } //~ ERROR: field #1 of struct `a::B` is private
74
+ match b { a:: B ( _b) => { } } //~ ERROR: field #0 of struct `a::B` is private
75
+ match b { a:: B ( 1 ) => { } a:: B ( _) => { } } //~ ERROR: field #0 of struct `a::B` is private
76
76
77
77
let a:: C ( _, _) = c;
78
78
let a:: C ( _a, _) = c;
79
- let a:: C ( _, _b) = c; //~ ERROR: field #2 of struct `a::C` is private
80
- let a:: C ( _a, _b) = c; //~ ERROR: field #2 of struct `a::C` is private
79
+ let a:: C ( _, _b) = c; //~ ERROR: field #1 of struct `a::C` is private
80
+ let a:: C ( _a, _b) = c; //~ ERROR: field #1 of struct `a::C` is private
81
81
match c { a:: C ( _, _) => { } }
82
82
match c { a:: C ( _a, _) => { } }
83
- match c { a:: C ( _, _b) => { } } //~ ERROR: field #2 of struct `a::C` is private
84
- match c { a:: C ( _a, _b) => { } } //~ ERROR: field #2 of struct `a::C` is private
83
+ match c { a:: C ( _, _b) => { } } //~ ERROR: field #1 of struct `a::C` is private
84
+ match c { a:: C ( _a, _b) => { } } //~ ERROR: field #1 of struct `a::C` is private
85
85
86
86
let a:: D ( _) = d;
87
87
let a:: D ( _d) = d;
@@ -101,30 +101,30 @@ fn xcrate() {
101
101
let c = other:: C ( 2 , 3 ) ; //~ ERROR: cannot invoke tuple struct constructor
102
102
let d = other:: D ( 4 ) ;
103
103
104
- let other:: A ( ( ) ) = a; //~ ERROR: field #1 of struct `other::A` is private
104
+ let other:: A ( ( ) ) = a; //~ ERROR: field #0 of struct `other::A` is private
105
105
let other:: A ( _) = a;
106
106
match a { other:: A ( ( ) ) => { } }
107
- //~^ ERROR: field #1 of struct `other::A` is private
107
+ //~^ ERROR: field #0 of struct `other::A` is private
108
108
match a { other:: A ( _) => { } }
109
109
110
110
let other:: B ( _) = b;
111
- let other:: B ( _b) = b; //~ ERROR: field #1 of struct `other::B` is private
111
+ let other:: B ( _b) = b; //~ ERROR: field #0 of struct `other::B` is private
112
112
match b { other:: B ( _) => { } }
113
113
match b { other:: B ( _b) => { } }
114
- //~^ ERROR: field #1 of struct `other::B` is private
114
+ //~^ ERROR: field #0 of struct `other::B` is private
115
115
match b { other:: B ( 1 ) => { } other:: B ( _) => { } }
116
- //~^ ERROR: field #1 of struct `other::B` is private
116
+ //~^ ERROR: field #0 of struct `other::B` is private
117
117
118
118
let other:: C ( _, _) = c;
119
119
let other:: C ( _a, _) = c;
120
- let other:: C ( _, _b) = c; //~ ERROR: field #2 of struct `other::C` is private
121
- let other:: C ( _a, _b) = c; //~ ERROR: field #2 of struct `other::C` is private
120
+ let other:: C ( _, _b) = c; //~ ERROR: field #1 of struct `other::C` is private
121
+ let other:: C ( _a, _b) = c; //~ ERROR: field #1 of struct `other::C` is private
122
122
match c { other:: C ( _, _) => { } }
123
123
match c { other:: C ( _a, _) => { } }
124
124
match c { other:: C ( _, _b) => { } }
125
- //~^ ERROR: field #2 of struct `other::C` is private
125
+ //~^ ERROR: field #1 of struct `other::C` is private
126
126
match c { other:: C ( _a, _b) => { } }
127
- //~^ ERROR: field #2 of struct `other::C` is private
127
+ //~^ ERROR: field #1 of struct `other::C` is private
128
128
129
129
let other:: D ( _) = d;
130
130
let other:: D ( _d) = d;
0 commit comments