mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
10 lines
149 B
Rust
10 lines
149 B
Rust
#![feature(type_alias_impl_trait)]
|
|
|
|
type Opaque<'a> = impl Sized + 'a;
|
|
|
|
fn test(f: fn(u8)) -> fn(Opaque<'_>) {
|
|
f //~ ERROR E0792
|
|
}
|
|
|
|
fn main() {}
|