]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/field-types.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / type-alias-impl-trait / field-types.rs
1 #![feature(type_alias_impl_trait)]
2 #![allow(dead_code)]
3
4 // check-pass
5
6 use std::fmt::Debug;
7
8 type Foo = impl Debug;
9
10 struct Bar {
11     foo: Foo,
12 }
13
14 fn bar() -> Bar {
15     Bar { foo: "foo" }
16 }
17
18 fn main() {}