blob: c5a78531026ad24e7f43bce4a686928d223d7cef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
error[E0658]: cannot call conditionally-const operator in constant functions
--> $DIR/issue-90870.rs:9:5
|
LL | a == b
| ^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
= note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
help: consider dereferencing here
|
LL | *a == *b
| + +
error: `PartialEq` is not yet stable as a const trait
--> $DIR/issue-90870.rs:9:5
|
LL | a == b
| ^^^^^^
|
help: add `#![feature(const_cmp)]` to the crate attributes to enable
|
LL + #![feature(const_cmp)]
|
error[E0658]: cannot call conditionally-const operator in constant functions
--> $DIR/issue-90870.rs:17:5
|
LL | a == b
| ^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
= note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
help: consider dereferencing here
|
LL | ****a == ****b
| ++++ ++++
error: `PartialEq` is not yet stable as a const trait
--> $DIR/issue-90870.rs:17:5
|
LL | a == b
| ^^^^^^
|
help: add `#![feature(const_cmp)]` to the crate attributes to enable
|
LL + #![feature(const_cmp)]
|
error[E0658]: cannot call conditionally-const operator in constant functions
--> $DIR/issue-90870.rs:26:12
|
LL | if l == r {
| ^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
= note: see issue #143874 <https://github.com/rust-lang/rust/issues/143874> for more information
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
help: consider dereferencing here
|
LL | if *l == *r {
| + +
error: `PartialEq` is not yet stable as a const trait
--> $DIR/issue-90870.rs:26:12
|
LL | if l == r {
| ^^^^^^
|
help: add `#![feature(const_cmp)]` to the crate attributes to enable
|
LL + #![feature(const_cmp)]
|
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0658`.
|