11warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
2- --> $DIR/call-generic-method-chain.rs:6 :30
2+ --> $DIR/call-generic-method-chain.rs:7 :30
33 |
44LL | #![feature(const_trait_impl, effects)]
55 | ^^^^^^^
66 |
77 = note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
88 = note: `#[warn(incomplete_features)]` on by default
99
10- error: using `#![feature(effects)]` without enabling next trait solver globally
11- |
12- = note: the next trait solver must be enabled globally for the effects feature to work correctly
13- = help: use `-Znext-solver` to enable
14-
1510error: const `impl` for trait `PartialEq` which is not marked with `#[const_trait]`
16- --> $DIR/call-generic-method-chain.rs:10 :12
11+ --> $DIR/call-generic-method-chain.rs:11 :12
1712 |
1813LL | impl const PartialEq for S {
1914 | ^^^^^^^^^
@@ -22,32 +17,32 @@ LL | impl const PartialEq for S {
2217 = note: adding a non-const method body in the future would be a breaking change
2318
2419error: `~const` can only be applied to `#[const_trait]` traits
25- --> $DIR/call-generic-method-chain.rs:19 :32
20+ --> $DIR/call-generic-method-chain.rs:20 :32
2621 |
2722LL | const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
2823 | ^^^^^^^^^
2924
3025error: `~const` can only be applied to `#[const_trait]` traits
31- --> $DIR/call-generic-method-chain.rs:19 :32
26+ --> $DIR/call-generic-method-chain.rs:20 :32
3227 |
3328LL | const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
3429 | ^^^^^^^^^
3530 |
3631 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
3732
3833error: `~const` can only be applied to `#[const_trait]` traits
39- --> $DIR/call-generic-method-chain.rs:23 :40
34+ --> $DIR/call-generic-method-chain.rs:24 :40
4035 |
4136LL | const fn equals_self_wrapper<T: ~const PartialEq>(t: &T) -> bool {
4237 | ^^^^^^^^^
4338
4439error: `~const` can only be applied to `#[const_trait]` traits
45- --> $DIR/call-generic-method-chain.rs:23 :40
40+ --> $DIR/call-generic-method-chain.rs:24 :40
4641 |
4742LL | const fn equals_self_wrapper<T: ~const PartialEq>(t: &T) -> bool {
4843 | ^^^^^^^^^
4944 |
5045 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
5146
52- error: aborting due to 6 previous errors; 1 warning emitted
47+ error: aborting due to 5 previous errors; 1 warning emitted
5348
0 commit comments