about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-21 12:05:08 +0100
committerGitHub <noreply@github.com>2024-03-21 12:05:08 +0100
commitfb1b198ceae197cab272b58db28653cd390af345 (patch)
tree4da63748aa84aeda0a26e8e08a4951a28ddcdafc /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parente8794ff5417f91d23d3e62485c6e1778cbd34574 (diff)
parent9022122b8b33e5a1fb9c07fcb3984005ef1a63e0 (diff)
downloadrust-fb1b198ceae197cab272b58db28653cd390af345.tar.gz
rust-fb1b198ceae197cab272b58db28653cd390af345.zip
Rollup merge of #122799 - estebank:issue-122569, r=fee1-dead
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