]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.full_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-const.full_tait.stderr
1 warning: the feature `type_alias_impl_trait` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/type-alias-impl-trait-const.rs:3:32
3 |
4 LL | #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5 | ^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
9
10 error[E0308]: mismatched types
11 --> $DIR/type-alias-impl-trait-const.rs:13:19
12 |
13 LL | pub type Foo = impl Debug;
14 | ---------- the expected opaque type
15 ...
16 LL | const _FOO: Foo = 5;
17 | ^ expected opaque type, found integer
18 |
19 = note: expected opaque type `impl Debug`
20 found type `{integer}`
21
22 error: could not find defining uses
23 --> $DIR/type-alias-impl-trait-const.rs:10:16
24 |
25 LL | pub type Foo = impl Debug;
26 | ^^^^^^^^^^
27
28 error: aborting due to 2 previous errors; 1 warning emitted
29
30 For more information about this error, try `rustc --explain E0308`.