blob: 91be4efd56a154889cd6908b0337802312bffe5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// build-pass (FIXME(62277): could be check-pass?)
#![feature(type_alias_impl_trait)]
use std::fmt::Debug;
fn main() {
type Existential = impl Debug;
fn f() -> Existential {}
println!("{:?}", f());
}
|