1
1
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
2
- --> $DIR/call-generic-method-dup-bound.rs:4 :30
2
+ --> $DIR/call-generic-method-dup-bound.rs:5 :30
3
3
|
4
4
LL | #![feature(const_trait_impl, effects)]
5
5
| ^^^^^^^
6
6
|
7
7
= note: see issue #102090 <https://github.com/rust-lang/rust/issues/102090> for more information
8
8
= note: `#[warn(incomplete_features)]` on by default
9
9
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
-
15
10
error: const `impl` for trait `PartialEq` which is not marked with `#[const_trait]`
16
- --> $DIR/call-generic-method-dup-bound.rs:8 :12
11
+ --> $DIR/call-generic-method-dup-bound.rs:9 :12
17
12
|
18
13
LL | impl const PartialEq for S {
19
14
| ^^^^^^^^^
@@ -22,32 +17,32 @@ LL | impl const PartialEq for S {
22
17
= note: adding a non-const method body in the future would be a breaking change
23
18
24
19
error: `~const` can only be applied to `#[const_trait]` traits
25
- --> $DIR/call-generic-method-dup-bound.rs:19 :44
20
+ --> $DIR/call-generic-method-dup-bound.rs:20 :44
26
21
|
27
22
LL | const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
28
23
| ^^^^^^^^^
29
24
30
25
error: `~const` can only be applied to `#[const_trait]` traits
31
- --> $DIR/call-generic-method-dup-bound.rs:19 :44
26
+ --> $DIR/call-generic-method-dup-bound.rs:20 :44
32
27
|
33
28
LL | const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
34
29
| ^^^^^^^^^
35
30
|
36
31
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
37
32
38
33
error: `~const` can only be applied to `#[const_trait]` traits
39
- --> $DIR/call-generic-method-dup-bound.rs:26 :37
34
+ --> $DIR/call-generic-method-dup-bound.rs:27 :37
40
35
|
41
36
LL | const fn equals_self2<T: A + ~const PartialEq>(t: &T) -> bool {
42
37
| ^^^^^^^^^
43
38
44
39
error: `~const` can only be applied to `#[const_trait]` traits
45
- --> $DIR/call-generic-method-dup-bound.rs:26 :37
40
+ --> $DIR/call-generic-method-dup-bound.rs:27 :37
46
41
|
47
42
LL | const fn equals_self2<T: A + ~const PartialEq>(t: &T) -> bool {
48
43
| ^^^^^^^^^
49
44
|
50
45
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
51
46
52
- error: aborting due to 6 previous errors; 1 warning emitted
47
+ error: aborting due to 5 previous errors; 1 warning emitted
53
48
0 commit comments