diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-03-20 22:50:32 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-03-21 00:07:44 +0000 |
| commit | 9022122b8b33e5a1fb9c07fcb3984005ef1a63e0 (patch) | |
| tree | 2875796ba3bd04bf0ffed736f90273381048932b /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs | |
| parent | 76096efb48d79ee5d3434d31285828d15a50b9c7 (diff) | |
| download | rust-9022122b8b33e5a1fb9c07fcb3984005ef1a63e0.tar.gz rust-9022122b8b33e5a1fb9c07fcb3984005ef1a63e0.zip | |
Replace closures with `_` when suggesting fully qualified path for method call
```
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.
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions
