fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0635]: unknown feature `const_cmp` 2 --> $DIR/const-impl-trait.rs:6:5 3 | 4LL | const_cmp, 5 | ^^^^^^^^^ 6 7error: ~const can only be applied to `#[const_trait]` traits 8 --> $DIR/const-impl-trait.rs:12:30 9 | 10LL | const fn cmp(a: &impl ~const PartialEq) -> bool { 11 | ^^^^^^^^^ 12 13error: ~const can only be applied to `#[const_trait]` traits 14 --> $DIR/const-impl-trait.rs:16:30 15 | 16LL | const fn wrap(x: impl ~const PartialEq + ~const Destruct) 17 | ^^^^^^^^^ 18 19error: ~const can only be applied to `#[const_trait]` traits 20 --> $DIR/const-impl-trait.rs:17:20 21 | 22LL | -> impl ~const PartialEq + ~const Destruct 23 | ^^^^^^^^^ 24 25error: ~const can only be applied to `#[const_trait]` traits 26 --> $DIR/const-impl-trait.rs:24:29 27 | 28LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy; 29 | ^^^^^^^^^ 30 31error: ~const can only be applied to `#[const_trait]` traits 32 --> $DIR/const-impl-trait.rs:28:29 33 | 34LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy { 35 | ^^^^^^^^^ 36 37error: aborting due to 6 previous errors 38 39For more information about this error, try `rustc --explain E0635`.