@@ -173,7 +173,17 @@ LL | | };
173173 | |_____^ help: try: `Some((String::new(), "test")).as_ref().map(|(x, y)| (y, x))`
174174
175175error: manual implementation of `Option::map`
176- --> tests/ui/manual_map_option.rs:196:5
176+ --> tests/ui/manual_map_option.rs:185:5
177+ |
178+ LL | / match Some(0) {
179+ LL | |
180+ LL | | Some(x) => Some(vec![x]),
181+ LL | | None => None,
182+ LL | | };
183+ | |_____^ help: try: `Some(0).map(|x| vec![x])`
184+
185+ error: manual implementation of `Option::map`
186+ --> tests/ui/manual_map_option.rs:197:5
177187 |
178188LL | / match option_env!("") {
179189LL | |
@@ -183,7 +193,7 @@ LL | | };
183193 | |_____^ help: try: `option_env!("").map(String::from)`
184194
185195error: manual implementation of `Option::map`
186- --> tests/ui/manual_map_option.rs:217 :12
196+ --> tests/ui/manual_map_option.rs:218 :12
187197 |
188198LL | } else if let Some(x) = Some(0) {
189199 | ____________^
@@ -195,7 +205,7 @@ LL | | };
195205 | |_____^ help: try: `{ Some(0).map(|x| x + 1) }`
196206
197207error: manual implementation of `Option::map`
198- --> tests/ui/manual_map_option.rs:226 :12
208+ --> tests/ui/manual_map_option.rs:227 :12
199209 |
200210LL | } else if let Some(x) = Some(0) {
201211 | ____________^
@@ -206,5 +216,5 @@ LL | | None
206216LL | | };
207217 | |_____^ help: try: `{ Some(0).map(|x| x + 1) }`
208218
209- error: aborting due to 20 previous errors
219+ error: aborting due to 21 previous errors
210220
0 commit comments