]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.min_tait.stderr
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
[rust.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-const.min_tait.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-alias-impl-trait-const.rs:13:19
3    |
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
9    |
10    = note: expected opaque type `impl Debug`
11                      found type `{integer}`
12
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
20
21 For more information about this error, try `rustc --explain E0308`.