We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50b44ac commit cb04a2dCopy full SHA for cb04a2d
tests/ui/suggestions/deref-path-method.stderr
@@ -1,8 +1,8 @@
1
-error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
+error[E0599]: `Vec<_, _>` is not an iterator
2
--> $DIR/deref-path-method.rs:3:10
3
|
4
LL | Vec::contains(&vec, &0);
5
- | ^^^^^^^^ function or associated item not found in `Vec<_, _>`
+ | ^^^^^^^^ `Vec<_, _>` is not an iterator
6
7
note: if you're trying to build a new `Vec<_, _>` consider using one of the following associated functions:
8
Vec::<T>::new
@@ -11,6 +11,9 @@ note: if you're trying to build a new `Vec<_, _>` consider using one of the foll
11
Vec::<T>::from_raw_parts
12
and 6 others
13
--> $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`
17
help: the function `contains` is implemented on `[_]`
18
19
LL - Vec::contains(&vec, &0);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments