1- error: use the question mark operator instead of an `and_then` call
1+ error: use the `?` operator instead of an `and_then` call
22 --> tests/ui/return_and_then.rs:5:9
33 |
44LL | / opt.and_then(|n| {
@@ -20,7 +20,7 @@ LL + ret += n;
2020LL + if n > 1 { Some(ret) } else { None }
2121 |
2222
23- error: use the question mark operator instead of an `and_then` call
23+ error: use the `?` operator instead of an `and_then` call
2424 --> tests/ui/return_and_then.rs:14:9
2525 |
2626LL | opt.and_then(|n| test_opt_block(Some(n)))
@@ -32,7 +32,7 @@ LL ~ let n = opt?;
3232LL + test_opt_block(Some(n))
3333 |
3434
35- error: use the question mark operator instead of an `and_then` call
35+ error: use the `?` operator instead of an `and_then` call
3636 --> tests/ui/return_and_then.rs:19:9
3737 |
3838LL | gen_option(1).and_then(|n| test_opt_block(Some(n)))
@@ -44,7 +44,7 @@ LL ~ let n = gen_option(1)?;
4444LL + test_opt_block(Some(n))
4545 |
4646
47- error: use the question mark operator instead of an `and_then` call
47+ error: use the `?` operator instead of an `and_then` call
4848 --> tests/ui/return_and_then.rs:24:9
4949 |
5050LL | opt.and_then(|n| if n > 1 { Ok(n + 1) } else { Err(n) })
@@ -56,7 +56,7 @@ LL ~ let n = opt?;
5656LL + if n > 1 { Ok(n + 1) } else { Err(n) }
5757 |
5858
59- error: use the question mark operator instead of an `and_then` call
59+ error: use the `?` operator instead of an `and_then` call
6060 --> tests/ui/return_and_then.rs:29:9
6161 |
6262LL | opt.and_then(|n| test_res_block(Ok(n)))
@@ -68,7 +68,7 @@ LL ~ let n = opt?;
6868LL + test_res_block(Ok(n))
6969 |
7070
71- error: use the question mark operator instead of an `and_then` call
71+ error: use the `?` operator instead of an `and_then` call
7272 --> tests/ui/return_and_then.rs:35:9
7373 |
7474LL | Some("").and_then(|x| if x.len() > 2 { Some(3) } else { None })
@@ -80,7 +80,7 @@ LL ~ let x = Some("")?;
8080LL + if x.len() > 2 { Some(3) } else { None }
8181 |
8282
83- error: use the question mark operator instead of an `and_then` call
83+ error: use the `?` operator instead of an `and_then` call
8484 --> tests/ui/return_and_then.rs:41:9
8585 |
8686LL | / Some(match (vec![1, 2, 3], vec![1, 2, 4]) {
0 commit comments