Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 606cd35

Browse files
committed
bless test stderr
1 parent 50b44ac commit 606cd35

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
22
let vec = Vec::new();
33
Vec::contains(&vec, &0);
4-
//~^ ERROR no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
4+
//~^ ERROR `Vec<_, _>` is not an iterator
55
//~| HELP the function `contains` is implemented on `[_]`
66
}

‎tests/ui/suggestions/deref-path-method.stderr

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
1+
error[E0599]: `Vec<_, _>` is not an iterator
22
--> $DIR/deref-path-method.rs:3:10
33
|
44
LL | Vec::contains(&vec, &0);
5-
| ^^^^^^^^ function or associated item not found in `Vec<_, _>`
5+
| ^^^^^^^^ `Vec<_, _>` is not an iterator
66
|
77
note: if you're trying to build a new `Vec<_, _>` consider using one of the following associated functions:
88
Vec::<T>::new
@@ -11,6 +11,9 @@ note: if you're trying to build a new `Vec<_, _>` consider using one of the foll
1111
Vec::<T>::from_raw_parts
1212
and 6 others
1313
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
14+
= note: the following trait bounds were not satisfied:
15+
`Vec<_, _>: Iterator`
16+
which is required by `&mut Vec<_, _>: Iterator`
1417
help: the function `contains` is implemented on `[_]`
1518
|
1619
LL - Vec::contains(&vec, &0);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /