about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-03-20 22:50:32 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-03-21 00:07:44 +0000
commit5fae66592494d37aa9b7c3add8c0e6077e0833f7 (patch)
tree2adac5cac5f329524fffd63c416e5a81346d1c17 /tests/coverage/branch/lazy-boolean.coverage
parenta128516cf9de352ae1f9d430ed730363c7ca3c0c (diff)
downloadrust-5fae66592494d37aa9b7c3add8c0e6077e0833f7.tar.gz
rust-5fae66592494d37aa9b7c3add8c0e6077e0833f7.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/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions