]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/type-alias-impl-trait-const.rs:13:19 | |
48663c56 | 3 | | |
136023e0 XL |
4 | LL | pub type Foo = impl Debug; |
5 | | ---------- the expected opaque type | |
6 | ... | |
7 | LL | const _FOO: Foo = 5; | |
8 | | ^ expected opaque type, found integer | |
416331ca | 9 | | |
136023e0 XL |
10 | = note: expected opaque type `impl Debug` |
11 | found type `{integer}` | |
48663c56 | 12 | |
136023e0 XL |
13 | error: could not find defining uses |
14 | --> $DIR/type-alias-impl-trait-const.rs:10:16 | |
15 | | | |
16 | LL | pub type Foo = impl Debug; | |
17 | | ^^^^^^^^^^ | |
18 | ||
19 | error: aborting due to 2 previous errors | |
ba9703b0 | 20 | |
136023e0 | 21 | For more information about this error, try `rustc --explain E0308`. |