Skip to content

Commit 0a999af

Browse files
committed
Update UI test output
1 parent 0b09d35 commit 0a999af

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/ui/collect.stderr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
error: you are creating a collection of `Result`s
2-
--> $DIR/collect.rs:6:21
3-
|
4-
6 | let option_vec: Vec<_> = b.iter()
5-
| ^^^^^^
6-
|
7-
= note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
2+
--> $DIR/collect.rs:16:21
3+
|
4+
LL | let option_vec: Vec<_> = b.iter()
5+
| ^^^^^^
6+
|
7+
= note: `-D clippy::possible-shortcircuiting-collect` implied by `-D warnings`
88
help: if you are only interested in the case where all values are `Ok`, try
9-
|
10-
6 | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
|
10+
LL | let option_vec: Result<std::vec::Vec<_>, _> = b.iter()
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: you are creating a collection of `Option`s
14-
--> $DIR/collect.rs:23:18
14+
--> $DIR/collect.rs:33:18
1515
|
16-
23 | let _result: Vec<_> = a.iter().map(Some).collect();
16+
LL | let _result: Vec<_> = a.iter().map(Some).collect();
1717
| ^^^^^^
1818
help: if you are only interested in the case where all values are `Some`, try
1919
|
20-
23 | let _result: Option<std::vec::Vec<_>> = a.iter().map(Some).collect();
20+
LL | let _result: Option<std::vec::Vec<_>> = a.iter().map(Some).collect();
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^
2222

2323
error: you are creating a collection of `Option`s
24-
--> $DIR/collect.rs:27:34
24+
--> $DIR/collect.rs:37:34
2525
|
26-
27 | Some(Some(elem)).into_iter().collect()
26+
LL | Some(Some(elem)).into_iter().collect()
2727
| ^^^^^^^^^
2828
help: if you are only interested in the case where all values are `Some`, try
2929
|
30-
27 | Some(Some(elem)).into_iter().collect::<Option<C>>()
30+
LL | Some(Some(elem)).into_iter().collect::<Option<C>>()
3131
| ^^^^^^^^^^^^^^^^^^^^^^
3232

3333
error: aborting due to 3 previous errors

0 commit comments

Comments
 (0)