mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
5fae665924
``` error[E0283]: type annotations needed --> $DIR/into-inference-needs-type.rs:12:10 | LL | .into()?; | ^^^^ | = note: cannot satisfy `_: From<...>` = note: required for `FilterMap<...>` to implement `Into<_>` help: try using a fully qualified path to specify the expected types | LL ~ let list = <FilterMap<Map<std::slice::Iter<'_, &str>, _>, _> as Into<T>>::into(vec LL | .iter() LL | .map(|s| s.strip_prefix("t")) LL ~ .filter_map(Option::Some))?; | ``` Fix #122569.
23 lines
657 B
Plaintext
23 lines
657 B
Plaintext
error[E0283]: type annotations needed
|
|
--> $DIR/suggest-fully-qualified-closure.rs:21:7
|
|
|
|
|
LL | q.lol(||());
|
|
| ^^^
|
|
|
|
|
note: multiple `impl`s satisfying `Qqq: MyTrait<_>` found
|
|
--> $DIR/suggest-fully-qualified-closure.rs:12:1
|
|
|
|
|
LL | impl MyTrait<u32> for Qqq{
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
...
|
|
LL | impl MyTrait<u64> for Qqq{
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
help: try using a fully qualified path to specify the expected types
|
|
|
|
|
LL | <Qqq as MyTrait<T>>::lol::<_>(&q, ||());
|
|
| +++++++++++++++++++++++++++++++ ~
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0283`.
|