1error[E0308]: mismatched types
2  --> $DIR/feature-gate-type_alias_impl_trait.rs:10:9
3   |
4LL | type Foo = impl Debug;
5   |            ---------- the expected opaque type
6...
7LL |     Bar(42)
8   |         ^^ expected opaque type, found integer
9   |
10   = note: expected opaque type `impl Debug`
11                     found type `{integer}`
12
13error[E0308]: mismatched types
14  --> $DIR/feature-gate-type_alias_impl_trait.rs:23:18
15   |
16LL | type Foo3 = impl Debug;
17   |             ---------- the found opaque type
18...
19LL |     let y: i32 = x;
20   |            ---   ^ expected `i32`, found opaque type
21   |            |
22   |            expected due to this
23   |
24   = note:     expected type `i32`
25           found opaque type `impl Debug`
26
27error[E0308]: mismatched types
28  --> $DIR/feature-gate-type_alias_impl_trait.rs:26:13
29   |
30LL | type Foo3 = impl Debug;
31   |             ---------- the expected opaque type
32...
33LL |     define3(42)
34   |             ^^ expected opaque type, found integer
35   |
36   = note: expected opaque type `impl Debug`
37                     found type `{integer}`
38
39error[E0308]: mismatched types
40  --> $DIR/feature-gate-type_alias_impl_trait.rs:33:19
41   |
42LL | type Foo4 = impl Debug;
43   |             ---------- the expected opaque type
44...
45LL |     let y: Foo4 = 42;
46   |            ----   ^^ expected opaque type, found integer
47   |            |
48   |            expected due to this
49   |
50   = note: expected opaque type `impl Debug`
51                     found type `{integer}`
52
53error: could not find defining uses
54  --> $DIR/feature-gate-type_alias_impl_trait.rs:5:12
55   |
56LL | type Foo = impl Debug;
57   |            ^^^^^^^^^^
58
59error: could not find defining uses
60  --> $DIR/feature-gate-type_alias_impl_trait.rs:19:13
61   |
62LL | type Foo3 = impl Debug;
63   |             ^^^^^^^^^^
64
65error: could not find defining uses
66  --> $DIR/feature-gate-type_alias_impl_trait.rs:29:13
67   |
68LL | type Foo4 = impl Debug;
69   |             ^^^^^^^^^^
70
71error: aborting due to 7 previous errors
72
73For more information about this error, try `rustc --explain E0308`.
74