2022-09-03 07:24:55 +00:00
|
|
|
error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
|
|
|
|
--> $DIR/deref-path-method.rs:3:10
|
|
|
|
|
|
|
|
|
LL | Vec::contains(&vec, &0);
|
|
|
|
| ^^^^^^^^ function or associated item not found in `Vec<_, _>`
|
|
|
|
|
|
2023-10-21 01:18:41 +00:00
|
|
|
note: if you're trying to build a new `Vec<_, _>` consider using one of the following associated functions:
|
|
|
|
Vec::<T>::new
|
|
|
|
Vec::<T>::with_capacity
|
2024-01-30 16:08:57 +00:00
|
|
|
Vec::<T>::try_with_capacity
|
2023-10-21 01:18:41 +00:00
|
|
|
Vec::<T>::from_raw_parts
|
2024-01-30 16:08:57 +00:00
|
|
|
and 4 others
|
2023-10-21 01:18:41 +00:00
|
|
|
--> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
|
2022-09-03 07:24:55 +00:00
|
|
|
help: the function `contains` is implemented on `[_]`
|
|
|
|
|
|
|
|
|
LL | <[_]>::contains(&vec, &0);
|
|
|
|
| ~~~~~
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-09-03 07:24:55 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|