@@ -48,80 +48,80 @@ mod a {
48
48
}
49
49
50
50
fn this_crate ( ) {
51
- let a = a:: A ( ( ) ) ; //~ ERROR tuple struct `A` is private
52
- let b = a:: B ( 2 ) ; //~ ERROR tuple struct `B` is private
53
- let c = a:: C ( 2 , 3 ) ; //~ ERROR tuple struct `C` is private
51
+ let a = a:: A ( ( ) ) ; //~ ERROR tuple struct constructor `A` is private
52
+ let b = a:: B ( 2 ) ; //~ ERROR tuple struct constructor `B` is private
53
+ let c = a:: C ( 2 , 3 ) ; //~ ERROR tuple struct constructor `C` is private
54
54
let d = a:: D ( 4 ) ;
55
55
56
- let a:: A ( ( ) ) = a; //~ ERROR tuple struct `A` is private
57
- let a:: A ( _) = a; //~ ERROR tuple struct `A` is private
58
- match a { a:: A ( ( ) ) => { } } //~ ERROR tuple struct `A` is private
59
- match a { a:: A ( _) => { } } //~ ERROR tuple struct `A` is private
60
-
61
- let a:: B ( _) = b; //~ ERROR tuple struct `B` is private
62
- let a:: B ( _b) = b; //~ ERROR tuple struct `B` is private
63
- match b { a:: B ( _) => { } } //~ ERROR tuple struct `B` is private
64
- match b { a:: B ( _b) => { } } //~ ERROR tuple struct `B` is private
65
- match b { a:: B ( 1 ) => { } a:: B ( _) => { } } //~ ERROR tuple struct `B` is private
66
- //~^ ERROR tuple struct `B` is private
67
-
68
- let a:: C ( _, _) = c; //~ ERROR tuple struct `C` is private
69
- let a:: C ( _a, _) = c; //~ ERROR tuple struct `C` is private
70
- let a:: C ( _, _b) = c; //~ ERROR tuple struct `C` is private
71
- let a:: C ( _a, _b) = c; //~ ERROR tuple struct `C` is private
72
- match c { a:: C ( _, _) => { } } //~ ERROR tuple struct `C` is private
73
- match c { a:: C ( _a, _) => { } } //~ ERROR tuple struct `C` is private
74
- match c { a:: C ( _, _b) => { } } //~ ERROR tuple struct `C` is private
75
- match c { a:: C ( _a, _b) => { } } //~ ERROR tuple struct `C` is private
56
+ let a:: A ( ( ) ) = a; //~ ERROR tuple struct constructor `A` is private
57
+ let a:: A ( _) = a; //~ ERROR tuple struct constructor `A` is private
58
+ match a { a:: A ( ( ) ) => { } } //~ ERROR tuple struct constructor `A` is private
59
+ match a { a:: A ( _) => { } } //~ ERROR tuple struct constructor `A` is private
60
+
61
+ let a:: B ( _) = b; //~ ERROR tuple struct constructor `B` is private
62
+ let a:: B ( _b) = b; //~ ERROR tuple struct constructor `B` is private
63
+ match b { a:: B ( _) => { } } //~ ERROR tuple struct constructor `B` is private
64
+ match b { a:: B ( _b) => { } } //~ ERROR tuple struct constructor `B` is private
65
+ match b { a:: B ( 1 ) => { } a:: B ( _) => { } } //~ ERROR tuple struct constructor `B` is private
66
+ //~^ ERROR tuple struct constructor `B` is private
67
+
68
+ let a:: C ( _, _) = c; //~ ERROR tuple struct constructor `C` is private
69
+ let a:: C ( _a, _) = c; //~ ERROR tuple struct constructor `C` is private
70
+ let a:: C ( _, _b) = c; //~ ERROR tuple struct constructor `C` is private
71
+ let a:: C ( _a, _b) = c; //~ ERROR tuple struct constructor `C` is private
72
+ match c { a:: C ( _, _) => { } } //~ ERROR tuple struct constructor `C` is private
73
+ match c { a:: C ( _a, _) => { } } //~ ERROR tuple struct constructor `C` is private
74
+ match c { a:: C ( _, _b) => { } } //~ ERROR tuple struct constructor `C` is private
75
+ match c { a:: C ( _a, _b) => { } } //~ ERROR tuple struct constructor `C` is private
76
76
77
77
let a:: D ( _) = d;
78
78
let a:: D ( _d) = d;
79
79
match d { a:: D ( _) => { } }
80
80
match d { a:: D ( _d) => { } }
81
81
match d { a:: D ( 1 ) => { } a:: D ( _) => { } }
82
82
83
- let a2 = a:: A ; //~ ERROR tuple struct `A` is private
84
- let b2 = a:: B ; //~ ERROR tuple struct `B` is private
85
- let c2 = a:: C ; //~ ERROR tuple struct `C` is private
83
+ let a2 = a:: A ; //~ ERROR tuple struct constructor `A` is private
84
+ let b2 = a:: B ; //~ ERROR tuple struct constructor `B` is private
85
+ let c2 = a:: C ; //~ ERROR tuple struct constructor `C` is private
86
86
let d2 = a:: D ;
87
87
}
88
88
89
89
fn xcrate ( ) {
90
- let a = other:: A ( ( ) ) ; //~ ERROR tuple struct `A` is private
91
- let b = other:: B ( 2 ) ; //~ ERROR tuple struct `B` is private
92
- let c = other:: C ( 2 , 3 ) ; //~ ERROR tuple struct `C` is private
90
+ let a = other:: A ( ( ) ) ; //~ ERROR tuple struct constructor `A` is private
91
+ let b = other:: B ( 2 ) ; //~ ERROR tuple struct constructor `B` is private
92
+ let c = other:: C ( 2 , 3 ) ; //~ ERROR tuple struct constructor `C` is private
93
93
let d = other:: D ( 4 ) ;
94
94
95
- let other:: A ( ( ) ) = a; //~ ERROR tuple struct `A` is private
96
- let other:: A ( _) = a; //~ ERROR tuple struct `A` is private
97
- match a { other:: A ( ( ) ) => { } } //~ ERROR tuple struct `A` is private
98
- match a { other:: A ( _) => { } } //~ ERROR tuple struct `A` is private
99
-
100
- let other:: B ( _) = b; //~ ERROR tuple struct `B` is private
101
- let other:: B ( _b) = b; //~ ERROR tuple struct `B` is private
102
- match b { other:: B ( _) => { } } //~ ERROR tuple struct `B` is private
103
- match b { other:: B ( _b) => { } } //~ ERROR tuple struct `B` is private
104
- match b { other:: B ( 1 ) => { } other :: B ( _ ) => { } } //~ ERROR tuple struct `B` is private
105
- //~^ ERROR tuple struct `B` is private
106
-
107
- let other:: C ( _, _) = c; //~ ERROR tuple struct `C` is private
108
- let other:: C ( _a, _) = c; //~ ERROR tuple struct `C` is private
109
- let other:: C ( _, _b) = c; //~ ERROR tuple struct `C` is private
110
- let other:: C ( _a, _b) = c; //~ ERROR tuple struct `C` is private
111
- match c { other:: C ( _, _) => { } } //~ ERROR tuple struct `C` is private
112
- match c { other:: C ( _a, _) => { } } //~ ERROR tuple struct `C` is private
113
- match c { other:: C ( _, _b) => { } } //~ ERROR tuple struct `C` is private
114
- match c { other:: C ( _a, _b) => { } } //~ ERROR tuple struct `C` is private
95
+ let other:: A ( ( ) ) = a; //~ ERROR tuple struct constructor `A` is private
96
+ let other:: A ( _) = a; //~ ERROR tuple struct constructor `A` is private
97
+ match a { other:: A ( ( ) ) => { } } //~ ERROR tuple struct constructor `A` is private
98
+ match a { other:: A ( _) => { } } //~ ERROR tuple struct constructor `A` is private
99
+
100
+ let other:: B ( _) = b; //~ ERROR tuple struct constructor `B` is private
101
+ let other:: B ( _b) = b; //~ ERROR tuple struct constructor `B` is private
102
+ match b { other:: B ( _) => { } } //~ ERROR tuple struct constructor `B` is private
103
+ match b { other:: B ( _b) => { } } //~ ERROR tuple struct constructor `B` is private
104
+ match b { other:: B ( 1 ) => { } //~ ERROR tuple struct constructor `B` is private
105
+ other :: B ( _ ) => { } } //~ ERROR tuple struct constructor `B` is private
106
+
107
+ let other:: C ( _, _) = c; //~ ERROR tuple struct constructor `C` is private
108
+ let other:: C ( _a, _) = c; //~ ERROR tuple struct constructor `C` is private
109
+ let other:: C ( _, _b) = c; //~ ERROR tuple struct constructor `C` is private
110
+ let other:: C ( _a, _b) = c; //~ ERROR tuple struct constructor `C` is private
111
+ match c { other:: C ( _, _) => { } } //~ ERROR tuple struct constructor `C` is private
112
+ match c { other:: C ( _a, _) => { } } //~ ERROR tuple struct constructor `C` is private
113
+ match c { other:: C ( _, _b) => { } } //~ ERROR tuple struct constructor `C` is private
114
+ match c { other:: C ( _a, _b) => { } } //~ ERROR tuple struct constructor `C` is private
115
115
116
116
let other:: D ( _) = d;
117
117
let other:: D ( _d) = d;
118
118
match d { other:: D ( _) => { } }
119
119
match d { other:: D ( _d) => { } }
120
120
match d { other:: D ( 1 ) => { } other:: D ( _) => { } }
121
121
122
- let a2 = other:: A ; //~ ERROR tuple struct `A` is private
123
- let b2 = other:: B ; //~ ERROR tuple struct `B` is private
124
- let c2 = other:: C ; //~ ERROR tuple struct `C` is private
122
+ let a2 = other:: A ; //~ ERROR tuple struct constructor `A` is private
123
+ let b2 = other:: B ; //~ ERROR tuple struct constructor `B` is private
124
+ let c2 = other:: C ; //~ ERROR tuple struct constructor `C` is private
125
125
let d2 = other:: D ;
126
126
}
127
127
0 commit comments