Skip to content

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)