1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-68368-non-defining-use.rs:7:32
4 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5 | ^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
10 error: non-defining opaque type use in defining scope
11 --> $DIR/issue-68368-non-defining-use.rs:11:15
13 LL | fn f<'a>() -> Alias<'a, ()> {}
16 note: used non-generic type `()` for generic parameter
17 --> $DIR/issue-68368-non-defining-use.rs:10:16
19 LL | type Alias<'a, U> = impl Trait<U>;
22 error: aborting due to previous error; 1 warning emitted