mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
9 lines
218 B
Rust
9 lines
218 B
Rust
#![feature(impl_trait_in_fn_trait_return)]
|
|
use std::fmt::Debug;
|
|
|
|
fn a() -> impl Fn(&u8) -> impl Debug {
|
|
|x| x //~ ERROR hidden type for `impl Debug` captures lifetime that does not appear in bounds
|
|
}
|
|
|
|
fn main() {}
|