1 error[E0308]: mismatched types
2 --> $DIR/feature-gate-type_alias_impl_trait.rs:10:9
4 LL | type Foo = impl Debug;
5 | ---------- the expected opaque type
8 | ^^ expected opaque type, found integer
10 = note: expected opaque type `impl Debug`
11 found type `{integer}`
13 error[E0308]: mismatched types
14 --> $DIR/feature-gate-type_alias_impl_trait.rs:23:18
16 LL | type Foo3 = impl Debug;
17 | ---------- the found opaque type
20 | --- ^ expected `i32`, found opaque type
22 | expected due to this
24 = note: expected type `i32`
25 found opaque type `impl Debug`
27 error[E0308]: mismatched types
28 --> $DIR/feature-gate-type_alias_impl_trait.rs:26:13
30 LL | type Foo3 = impl Debug;
31 | ---------- the expected opaque type
34 | ^^ expected opaque type, found integer
36 = note: expected opaque type `impl Debug`
37 found type `{integer}`
39 error[E0308]: mismatched types
40 --> $DIR/feature-gate-type_alias_impl_trait.rs:33:19
42 LL | type Foo4 = impl Debug;
43 | ---------- the expected opaque type
45 LL | let y: Foo4 = 42;
46 | ---- ^^ expected opaque type, found integer
48 | expected due to this
50 = note: expected opaque type `impl Debug`
51 found type `{integer}`
53 error: could not find defining uses
54 --> $DIR/feature-gate-type_alias_impl_trait.rs:5:12
56 LL | type Foo = impl Debug;
59 error: could not find defining uses
60 --> $DIR/feature-gate-type_alias_impl_trait.rs:19:13
62 LL | type Foo3 = impl Debug;
65 error: could not find defining uses
66 --> $DIR/feature-gate-type_alias_impl_trait.rs:29:13
68 LL | type Foo4 = impl Debug;
71 error: aborting due to 7 previous errors
73 For more information about this error, try `rustc --explain E0308`.