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 cb04a2d

Browse files
committed
bless test stderr
1 parent 50b44ac commit cb04a2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎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 によって変換されたページ (->オリジナル) /