|
| 1 | +error[E0658]: `impl Trait` in type aliases is unstable |
| 2 | + --> $DIR/ice-unhandled-type-122191.rs:1:12 |
| 3 | + | |
| 4 | +LL | type Foo = impl Send; |
| 5 | + | ^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information |
| 8 | + = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable |
| 9 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 10 | + |
| 11 | +error[E0425]: cannot find function `value` in this scope |
| 12 | + --> $DIR/ice-unhandled-type-122191.rs:6:20 |
| 13 | + | |
| 14 | +LL | const VALUE: Foo = value(); |
| 15 | + | ^^^^^ not found in this scope |
| 16 | + |
| 17 | +error[E0308]: mismatched types |
| 18 | + --> $DIR/ice-unhandled-type-122191.rs:11:9 |
| 19 | + | |
| 20 | +LL | type Foo = impl Send; |
| 21 | + | --------- the expected opaque type |
| 22 | +... |
| 23 | +LL | match VALUE { |
| 24 | + | ----- this expression has type `Foo` |
| 25 | +LL | 0 | 0 => {} |
| 26 | + | ^ expected opaque type, found integer |
| 27 | + | |
| 28 | + = note: expected opaque type `Foo` |
| 29 | + found type `{integer}` |
| 30 | +note: this item must have the opaque type in its signature in order to be able to register hidden types |
| 31 | + --> $DIR/ice-unhandled-type-122191.rs:9:4 |
| 32 | + | |
| 33 | +LL | fn test() { |
| 34 | + | ^^^^ |
| 35 | + |
| 36 | +error[E0308]: mismatched types |
| 37 | + --> $DIR/ice-unhandled-type-122191.rs:11:13 |
| 38 | + | |
| 39 | +LL | type Foo = impl Send; |
| 40 | + | --------- the expected opaque type |
| 41 | +... |
| 42 | +LL | match VALUE { |
| 43 | + | ----- this expression has type `Foo` |
| 44 | +LL | 0 | 0 => {} |
| 45 | + | ^ expected opaque type, found integer |
| 46 | + | |
| 47 | + = note: expected opaque type `Foo` |
| 48 | + found type `{integer}` |
| 49 | +note: this item must have the opaque type in its signature in order to be able to register hidden types |
| 50 | + --> $DIR/ice-unhandled-type-122191.rs:9:4 |
| 51 | + | |
| 52 | +LL | fn test() { |
| 53 | + | ^^^^ |
| 54 | + |
| 55 | +error: aborting due to 4 previous errors |
| 56 | + |
| 57 | +Some errors have detailed explanations: E0308, E0425, E0658. |
| 58 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments