1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/type-alias-impl-trait-const.rs:3: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[E0308]: mismatched types
11 --> $DIR/type-alias-impl-trait-const.rs:13:19
13 LL | pub type Foo = impl Debug;
14 | ---------- the expected opaque type
16 LL | const _FOO: Foo = 5;
17 | ^ expected opaque type, found integer
19 = note: expected opaque type `impl Debug`
20 found type `{integer}`
22 error: could not find defining uses
23 --> $DIR/type-alias-impl-trait-const.rs:10:16
25 LL | pub type Foo = impl Debug;
28 error: aborting due to 2 previous errors; 1 warning emitted
30 For more information about this error, try `rustc --explain E0308`.