1 error[E0308]: mismatched types
2 --> $DIR/type-alias-impl-trait-const.rs:13:19
4 LL | pub type Foo = impl Debug;
5 | ---------- the expected opaque type
7 LL | const _FOO: Foo = 5;
8 | ^ expected opaque type, found integer
10 = note: expected opaque type `impl Debug`
11 found type `{integer}`
13 error: could not find defining uses
14 --> $DIR/type-alias-impl-trait-const.rs:10:16
16 LL | pub type Foo = impl Debug;
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.