]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: unnested or-patterns |
2 | --> $DIR/unnested_or_patterns.rs:10:12 | |
3 | | | |
4 | LL | if let box 0 | box 2 = Box::new(0) {} | |
5 | | ^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::unnested-or-patterns` implied by `-D warnings` | |
8 | help: nest the patterns | |
9 | | | |
10 | LL | if let box (0 | 2) = Box::new(0) {} | |
11 | | ^^^^^^^^^^^ | |
12 | ||
13 | error: unnested or-patterns | |
14 | --> $DIR/unnested_or_patterns.rs:11:12 | |
15 | | | |
16 | LL | if let box ((0 | 1)) | box (2 | 3) | box 4 = Box::new(0) {} | |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
18 | | | |
19 | help: nest the patterns | |
20 | | | |
21 | LL | if let box (0 | 1 | 2 | 3 | 4) = Box::new(0) {} | |
22 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
23 | ||
24 | error: unnested or-patterns | |
25 | --> $DIR/unnested_or_patterns.rs:13:12 | |
26 | | | |
27 | LL | if let &0 | C0 | &2 = &0 {} | |
28 | | ^^^^^^^^^^^^ | |
29 | | | |
30 | help: nest the patterns | |
31 | | | |
32 | LL | if let &(0 | 2) | C0 = &0 {} | |
33 | | ^^^^^^^^^^^^^ | |
34 | ||
35 | error: unnested or-patterns | |
36 | --> $DIR/unnested_or_patterns.rs:14:12 | |
37 | | | |
38 | LL | if let &mut 0 | &mut 2 = &mut 0 {} | |
39 | | ^^^^^^^^^^^^^^^ | |
40 | | | |
41 | help: nest the patterns | |
42 | | | |
43 | LL | if let &mut (0 | 2) = &mut 0 {} | |
44 | | ^^^^^^^^^^^^ | |
45 | ||
46 | error: unnested or-patterns | |
47 | --> $DIR/unnested_or_patterns.rs:15:12 | |
48 | | | |
49 | LL | if let x @ 0 | x @ 2 = 0 {} | |
50 | | ^^^^^^^^^^^^^ | |
51 | | | |
52 | help: nest the patterns | |
53 | | | |
54 | LL | if let x @ (0 | 2) = 0 {} | |
55 | | ^^^^^^^^^^^ | |
56 | ||
57 | error: unnested or-patterns | |
58 | --> $DIR/unnested_or_patterns.rs:16:12 | |
59 | | | |
60 | LL | if let (0, 1) | (0, 2) | (0, 3) = (0, 0) {} | |
61 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
62 | | | |
63 | help: nest the patterns | |
64 | | | |
65 | LL | if let (0, 1 | 2 | 3) = (0, 0) {} | |
66 | | ^^^^^^^^^^^^^^ | |
67 | ||
68 | error: unnested or-patterns | |
69 | --> $DIR/unnested_or_patterns.rs:17:12 | |
70 | | | |
71 | LL | if let (1, 0) | (2, 0) | (3, 0) = (0, 0) {} | |
72 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
73 | | | |
74 | help: nest the patterns | |
75 | | | |
76 | LL | if let (1 | 2 | 3, 0) = (0, 0) {} | |
77 | | ^^^^^^^^^^^^^^ | |
78 | ||
79 | error: unnested or-patterns | |
80 | --> $DIR/unnested_or_patterns.rs:18:12 | |
81 | | | |
82 | LL | if let (x, ..) | (x, 1) | (x, 2) = (0, 1) {} | |
83 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
84 | | | |
85 | help: nest the patterns | |
86 | | | |
87 | LL | if let (x, ..) | (x, 1 | 2) = (0, 1) {} | |
88 | | ^^^^^^^^^^^^^^^^^^^^ | |
89 | ||
90 | error: unnested or-patterns | |
91 | --> $DIR/unnested_or_patterns.rs:19:12 | |
92 | | | |
93 | LL | if let [0] | [1] = [0] {} | |
94 | | ^^^^^^^^^ | |
95 | | | |
96 | help: nest the patterns | |
97 | | | |
98 | LL | if let [0 | 1] = [0] {} | |
99 | | ^^^^^^^ | |
100 | ||
101 | error: unnested or-patterns | |
102 | --> $DIR/unnested_or_patterns.rs:20:12 | |
103 | | | |
104 | LL | if let [x, 0] | [x, 1] = [0, 1] {} | |
105 | | ^^^^^^^^^^^^^^^ | |
106 | | | |
107 | help: nest the patterns | |
108 | | | |
109 | LL | if let [x, 0 | 1] = [0, 1] {} | |
110 | | ^^^^^^^^^^ | |
111 | ||
112 | error: unnested or-patterns | |
113 | --> $DIR/unnested_or_patterns.rs:21:12 | |
114 | | | |
115 | LL | if let [x, 0] | [x, 1] | [x, 2] = [0, 1] {} | |
116 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
117 | | | |
118 | help: nest the patterns | |
119 | | | |
120 | LL | if let [x, 0 | 1 | 2] = [0, 1] {} | |
121 | | ^^^^^^^^^^^^^^ | |
122 | ||
123 | error: unnested or-patterns | |
124 | --> $DIR/unnested_or_patterns.rs:22:12 | |
125 | | | |
126 | LL | if let [x, ..] | [x, 1] | [x, 2] = [0, 1] {} | |
127 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
128 | | | |
129 | help: nest the patterns | |
130 | | | |
131 | LL | if let [x, ..] | [x, 1 | 2] = [0, 1] {} | |
132 | | ^^^^^^^^^^^^^^^^^^^^ | |
133 | ||
134 | error: unnested or-patterns | |
135 | --> $DIR/unnested_or_patterns.rs:24:12 | |
136 | | | |
137 | LL | if let TS(0, x) | TS(1, x) = TS(0, 0) {} | |
138 | | ^^^^^^^^^^^^^^^^^^^ | |
139 | | | |
140 | help: nest the patterns | |
141 | | | |
142 | LL | if let TS(0 | 1, x) = TS(0, 0) {} | |
143 | | ^^^^^^^^^^^^ | |
144 | ||
145 | error: unnested or-patterns | |
146 | --> $DIR/unnested_or_patterns.rs:25:12 | |
147 | | | |
148 | LL | if let TS(1, 0) | TS(2, 0) | TS(3, 0) = TS(0, 0) {} | |
149 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
150 | | | |
151 | help: nest the patterns | |
152 | | | |
153 | LL | if let TS(1 | 2 | 3, 0) = TS(0, 0) {} | |
154 | | ^^^^^^^^^^^^^^^^ | |
155 | ||
156 | error: unnested or-patterns | |
157 | --> $DIR/unnested_or_patterns.rs:26:12 | |
158 | | | |
159 | LL | if let TS(x, ..) | TS(x, 1) | TS(x, 2) = TS(0, 0) {} | |
160 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
161 | | | |
162 | help: nest the patterns | |
163 | | | |
164 | LL | if let TS(x, ..) | TS(x, 1 | 2) = TS(0, 0) {} | |
165 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
166 | ||
167 | error: unnested or-patterns | |
168 | --> $DIR/unnested_or_patterns.rs:31:12 | |
169 | | | |
170 | LL | if let S { x: 0, y } | S { y, x: 1 } = (S { x: 0, y: 1 }) {} | |
171 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
172 | | | |
173 | help: nest the patterns | |
174 | | | |
175 | LL | if let S { x: 0 | 1, y } = (S { x: 0, y: 1 }) {} | |
176 | | ^^^^^^^^^^^^^^^^^ | |
177 | ||
178 | error: aborting due to 16 previous errors | |
179 |