]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.stderr
Rollup merge of #94263 - anko:patch-1, r=GuillaumeGomez
[rust.git] / src / test / ui / feature-gates / feature-gate-type_alias_impl_trait.stderr
1 error[E0308]: mismatched types
2   --> $DIR/feature-gate-type_alias_impl_trait.rs:10:9
3    |
4 LL | type Foo = impl Debug;
5    |            ---------- the expected opaque type
6 ...
7 LL |     Bar(42)
8    |         ^^ expected opaque type, found integer
9    |
10    = note: expected opaque type `impl Debug`
11                      found type `{integer}`
12
13 error[E0308]: mismatched types
14   --> $DIR/feature-gate-type_alias_impl_trait.rs:23:18
15    |
16 LL | type Foo3 = impl Debug;
17    |             ---------- the found opaque type
18 ...
19 LL |     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
27 error[E0308]: mismatched types
28   --> $DIR/feature-gate-type_alias_impl_trait.rs:26:13
29    |
30 LL | type Foo3 = impl Debug;
31    |             ---------- the expected opaque type
32 ...
33 LL |     define3(42)
34    |             ^^ expected opaque type, found integer
35    |
36    = note: expected opaque type `impl Debug`
37                      found type `{integer}`
38
39 error[E0308]: mismatched types
40   --> $DIR/feature-gate-type_alias_impl_trait.rs:33:19
41    |
42 LL | type Foo4 = impl Debug;
43    |             ---------- the expected opaque type
44 ...
45 LL |     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
53 error: could not find defining uses
54   --> $DIR/feature-gate-type_alias_impl_trait.rs:5:12
55    |
56 LL | type Foo = impl Debug;
57    |            ^^^^^^^^^^
58
59 error: could not find defining uses
60   --> $DIR/feature-gate-type_alias_impl_trait.rs:19:13
61    |
62 LL | type Foo3 = impl Debug;
63    |             ^^^^^^^^^^
64
65 error: could not find defining uses
66   --> $DIR/feature-gate-type_alias_impl_trait.rs:29:13
67    |
68 LL | type Foo4 = impl Debug;
69    |             ^^^^^^^^^^
70
71 error: aborting due to 7 previous errors
72
73 For more information about this error, try `rustc --explain E0308`.