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