Skip to content

Commit 0abb988

Browse files
committed
Rename tests and add short test description
1 parent 4cc7ef5 commit 0abb988

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/ui/issues/issue-66923.rs src/test/ui/issues/issue-66923-show-error-for-correct-call.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This test checks that errors are showed for lines with `collect` rather than `push` method.
2+
13
fn main() {
24
let v = vec![1_f64, 2.2_f64];
35
let mut fft: Vec<Vec<f64>> = vec![];

src/test/ui/issues/issue-66923.stderr src/test/ui/issues/issue-66923-show-error-for-correct-call.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0277]: a collection of type `std::vec::Vec<f64>` cannot be built from an iterator over elements of type `&f64`
2-
--> $DIR/issue-66923.rs:6:39
2+
--> $DIR/issue-66923-show-error-for-correct-call.rs:8:39
33
|
44
LL | let x2: Vec<f64> = x1.into_iter().collect();
55
| ^^^^^^^ a collection of type `std::vec::Vec<f64>` cannot be built from `std::iter::Iterator<Item=&f64>`
66
|
77
= help: the trait `std::iter::FromIterator<&f64>` is not implemented for `std::vec::Vec<f64>`
88

99
error[E0277]: a collection of type `std::vec::Vec<f64>` cannot be built from an iterator over elements of type `&f64`
10-
--> $DIR/issue-66923.rs:10:29
10+
--> $DIR/issue-66923-show-error-for-correct-call.rs:12:29
1111
|
1212
LL | let x3 = x1.into_iter().collect::<Vec<f64>>();
1313
| ^^^^^^^ a collection of type `std::vec::Vec<f64>` cannot be built from `std::iter::Iterator<Item=&f64>`

0 commit comments

Comments
 (0)