@@ -13,103 +13,77 @@ fn _if() {
13
13
14
14
if ( let 0 = 1 ) { }
15
15
//~^ ERROR `let` expressions in this position are experimental [E0658]
16
- //~| ERROR `let` expressions are not supported here
17
16
18
17
if ( ( ( let 0 = 1 ) ) ) { }
19
18
//~^ ERROR `let` expressions in this position are experimental [E0658]
20
- //~| ERROR `let` expressions are not supported here
21
19
22
20
if true && let 0 = 1 { }
23
21
//~^ ERROR `let` expressions in this position are experimental [E0658]
24
- //~| ERROR `let` expressions are not supported here
25
22
26
23
if let 0 = 1 && true { }
27
24
//~^ ERROR `let` expressions in this position are experimental [E0658]
28
- //~| ERROR `let` expressions are not supported here
29
25
30
26
if ( let 0 = 1 ) && true { }
31
27
//~^ ERROR `let` expressions in this position are experimental [E0658]
32
- //~| ERROR `let` expressions are not supported here
33
28
34
29
if true && ( let 0 = 1 ) { }
35
30
//~^ ERROR `let` expressions in this position are experimental [E0658]
36
- //~| ERROR `let` expressions are not supported here
37
31
38
32
if ( let 0 = 1 ) && ( let 0 = 1 ) { }
39
33
//~^ ERROR `let` expressions in this position are experimental [E0658]
40
34
//~| ERROR `let` expressions in this position are experimental [E0658]
41
- //~| ERROR `let` expressions are not supported here
42
- //~| ERROR `let` expressions are not supported here
43
35
44
36
if let 0 = 1 && let 1 = 2 && ( let 2 = 3 && let 3 = 4 && let 4 = 5 ) { }
45
37
//~^ ERROR `let` expressions in this position are experimental [E0658]
46
38
//~| ERROR `let` expressions in this position are experimental [E0658]
47
39
//~| ERROR `let` expressions in this position are experimental [E0658]
48
40
//~| ERROR `let` expressions in this position are experimental [E0658]
49
41
//~| ERROR `let` expressions in this position are experimental [E0658]
50
- //~| ERROR `let` expressions are not supported here
51
- //~| ERROR `let` expressions are not supported here
52
- //~| ERROR `let` expressions are not supported here
53
- //~| ERROR `let` expressions are not supported here
54
- //~| ERROR `let` expressions are not supported here
55
42
56
43
if let Range { start : _, end : _ } = ( true ..true ) && false { }
57
44
//~^ ERROR `let` expressions in this position are experimental [E0658]
58
- //~| ERROR `let` expressions are not supported here
59
45
}
60
46
61
47
fn _while ( ) {
62
48
while let 0 = 1 { } // Stable!
63
49
64
50
while ( let 0 = 1 ) { }
65
51
//~^ ERROR `let` expressions in this position are experimental [E0658]
66
- //~| ERROR `let` expressions are not supported here
67
52
68
53
while ( ( ( let 0 = 1 ) ) ) { }
69
54
//~^ ERROR `let` expressions in this position are experimental [E0658]
70
- //~| ERROR `let` expressions are not supported here
71
55
72
56
while true && let 0 = 1 { }
73
57
//~^ ERROR `let` expressions in this position are experimental [E0658]
74
- //~| ERROR `let` expressions are not supported here
75
58
76
59
while let 0 = 1 && true { }
77
60
//~^ ERROR `let` expressions in this position are experimental [E0658]
78
- //~| ERROR `let` expressions are not supported here
79
61
80
62
while ( let 0 = 1 ) && true { }
81
63
//~^ ERROR `let` expressions in this position are experimental [E0658]
82
- //~| ERROR `let` expressions are not supported here
83
64
84
65
while true && ( let 0 = 1 ) { }
85
66
//~^ ERROR `let` expressions in this position are experimental [E0658]
86
- //~| ERROR `let` expressions are not supported here
87
67
88
68
while ( let 0 = 1 ) && ( let 0 = 1 ) { }
89
69
//~^ ERROR `let` expressions in this position are experimental [E0658]
90
70
//~| ERROR `let` expressions in this position are experimental [E0658]
91
- //~| ERROR `let` expressions are not supported here
92
- //~| ERROR `let` expressions are not supported here
93
71
94
72
while let 0 = 1 && let 1 = 2 && ( let 2 = 3 && let 3 = 4 && let 4 = 5 ) { }
95
73
//~^ ERROR `let` expressions in this position are experimental [E0658]
96
74
//~| ERROR `let` expressions in this position are experimental [E0658]
97
75
//~| ERROR `let` expressions in this position are experimental [E0658]
98
76
//~| ERROR `let` expressions in this position are experimental [E0658]
99
77
//~| ERROR `let` expressions in this position are experimental [E0658]
100
- //~| ERROR `let` expressions are not supported here
101
- //~| ERROR `let` expressions are not supported here
102
- //~| ERROR `let` expressions are not supported here
103
- //~| ERROR `let` expressions are not supported here
104
- //~| ERROR `let` expressions are not supported here
105
78
106
79
while let Range { start : _, end : _ } = ( true ..true ) && false { }
107
80
//~^ ERROR `let` expressions in this position are experimental [E0658]
108
- //~| ERROR `let` expressions are not supported here
109
81
}
110
82
111
83
fn _macros ( ) {
112
- macro_rules! noop_expr { ( $e: expr) => { } ; }
84
+ macro_rules! noop_expr {
85
+ ( $e: expr) => { } ;
86
+ }
113
87
114
88
noop_expr ! ( ( let 0 = 1 ) ) ;
115
89
//~^ ERROR `let` expressions in this position are experimental [E0658]
@@ -118,16 +92,12 @@ fn _macros() {
118
92
( $e: expr) => {
119
93
if $e { }
120
94
while $e { }
121
- }
95
+ } ;
122
96
}
123
97
use_expr ! ( ( let 0 = 1 && 0 == 0 ) ) ;
124
98
//~^ ERROR `let` expressions in this position are experimental [E0658]
125
- //~| ERROR `let` expressions are not supported here
126
- //~| ERROR `let` expressions are not supported here
127
99
use_expr ! ( ( let 0 = 1 ) ) ;
128
100
//~^ ERROR `let` expressions in this position are experimental [E0658]
129
- //~| ERROR `let` expressions are not supported here
130
- //~| ERROR `let` expressions are not supported here
131
101
#[ cfg( FALSE ) ] ( let 0 = 1 ) ;
132
102
//~^ ERROR `let` expressions in this position are experimental [E0658]
133
103
use_expr ! ( let 0 = 1 ) ;
0 commit comments