rust/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
218 B
Rust
Raw Normal View History

2022-07-28 20:18:32 +00:00
#![feature(impl_trait_in_fn_trait_return)]
use std::fmt::Debug;
fn a() -> impl Fn(&u8) -> impl Debug {
2022-07-28 20:18:32 +00:00
|x| x //~ ERROR hidden type for `impl Debug` captures lifetime that does not appear in bounds
}
fn main() {}