mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
14 lines
272 B
Rust
14 lines
272 B
Rust
#![feature(impl_trait_in_fn_trait_return)]
|
|
use std::fmt::Debug;
|
|
|
|
fn a<'a>() -> impl Fn(&'a u8) -> (impl Debug + '_) {
|
|
|x| x
|
|
//~^ ERROR expected generic lifetime parameter, found `'_`
|
|
}
|
|
|
|
fn _b<'a>() -> impl Fn(&'a u8) -> (impl Debug + 'a) {
|
|
a()
|
|
}
|
|
|
|
fn main() {}
|