summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/field-types.rs
blob: d99ed58127bd44e127e390f73958b1f9f1aaddd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]

// check-pass

use std::fmt::Debug;

type Foo = impl Debug;

struct Bar {
    foo: Foo,
}

fn bar() -> Bar {
    Bar { foo: "foo" }
}

fn main() {}