]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.min_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-const.min_tait.stderr
CommitLineData
136023e0
XL
1error[E0308]: mismatched types
2 --> $DIR/type-alias-impl-trait-const.rs:13:19
48663c56 3 |
136023e0
XL
4LL | pub type Foo = impl Debug;
5 | ---------- the expected opaque type
6...
7LL | 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
13error: could not find defining uses
14 --> $DIR/type-alias-impl-trait-const.rs:10:16
15 |
16LL | pub type Foo = impl Debug;
17 | ^^^^^^^^^^
18
19error: aborting due to 2 previous errors
ba9703b0 20
136023e0 21For more information about this error, try `rustc --explain E0308`.