mirror of https://github.com/rust-lang/rust
16 lines
744 B
Plaintext
16 lines
744 B
Plaintext
error[E0700]: hidden type for `impl Iterator<Item = i32>` captures lifetime that does not appear in bounds
|
|
--> $DIR/explicit-lifetime-suggestion-in-proper-span-issue-121267.rs:7:5
|
|
|
|
|
LL | fn bar(src: &crate::Foo) -> impl Iterator<Item = i32> {
|
|
| ------------------------- opaque type defined here
|
|
LL | / [0].into_iter()
|
|
LL | |
|
|
LL | | .filter_map(|_| foo(src))
|
|
| |_________________________________^
|
|
|
|
|
= note: hidden type `FilterMap<std::slice::Iter<'static, i32>, {closure@$DIR/explicit-lifetime-suggestion-in-proper-span-issue-121267.rs:9:21: 9:24}>` captures lifetime `'_`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0700`.
|