|
1 |
| -error[E0635]: unknown feature `const_cmp` |
2 |
| - --> $DIR/const-impl-trait.rs:6:5 |
| 1 | +error[E0277]: can't compare `impl PartialEq + Destruct + Copy` with `impl PartialEq + Destruct + Copy` |
| 2 | + --> $DIR/const-impl-trait.rs:28:17 |
3 | 3 | |
|
4 |
| -LL | const_cmp, |
5 |
| - | ^^^^^^^^^ |
6 |
| - |
7 |
| -error: ~const can only be applied to `#[const_trait]` traits |
8 |
| - --> $DIR/const-impl-trait.rs:11:30 |
9 |
| - | |
10 |
| -LL | const fn cmp(a: &impl ~const PartialEq) -> bool { |
11 |
| - | ^^^^^^^^^ |
12 |
| - |
13 |
| -error: ~const can only be applied to `#[const_trait]` traits |
14 |
| - --> $DIR/const-impl-trait.rs:15:30 |
15 |
| - | |
16 |
| -LL | const fn wrap(x: impl ~const PartialEq + ~const Destruct) |
17 |
| - | ^^^^^^^^^ |
18 |
| - |
19 |
| -error: ~const can only be applied to `#[const_trait]` traits |
20 |
| - --> $DIR/const-impl-trait.rs:16:20 |
| 4 | +LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy { |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `impl PartialEq + Destruct + Copy == impl PartialEq + Destruct + Copy` |
21 | 6 | |
|
22 |
| -LL | -> impl ~const PartialEq + ~const Destruct |
23 |
| - | ^^^^^^^^^ |
24 |
| - |
25 |
| -error: ~const can only be applied to `#[const_trait]` traits |
26 |
| - --> $DIR/const-impl-trait.rs:23:29 |
| 7 | + = help: the trait `PartialEq<impl PartialEq + Destruct + Copy>` is not implemented for `impl PartialEq + Destruct + Copy` |
| 8 | +note: required by a bound in `Foo::{opaque#0}` |
| 9 | + --> $DIR/const-impl-trait.rs:24:22 |
27 | 10 | |
|
28 | 11 | LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy;
|
29 |
| - | ^^^^^^^^^ |
30 |
| - |
31 |
| -error: ~const can only be applied to `#[const_trait]` traits |
32 |
| - --> $DIR/const-impl-trait.rs:27:29 |
33 |
| - | |
34 |
| -LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy { |
35 |
| - | ^^^^^^^^^ |
| 12 | + | ^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}` |
36 | 13 |
|
37 |
| -error: aborting due to 6 previous errors |
| 14 | +error: aborting due to 1 previous error |
38 | 15 |
|
39 |
| -For more information about this error, try `rustc --explain E0635`. |
| 16 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments