]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-90870.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / consts / issue-90870.stderr
1 error[E0015]: cannot call non-const operator in constant functions
2   --> $DIR/issue-90870.rs:8:5
3    |
4 LL |     a == b
5    |     ^^^^^^
6    |
7    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
8 help: consider dereferencing here
9    |
10 LL |     *a == *b
11    |     +     +
12
13 error[E0015]: cannot call non-const operator in constant functions
14   --> $DIR/issue-90870.rs:14:5
15    |
16 LL |     a == b
17    |     ^^^^^^
18    |
19    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
20 help: consider dereferencing here
21    |
22 LL |     ****a == ****b
23    |     ++++     ++++
24
25 error[E0015]: cannot call non-const operator in constant functions
26   --> $DIR/issue-90870.rs:21:12
27    |
28 LL |         if l == r {
29    |            ^^^^^^
30    |
31    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
32 help: consider dereferencing here
33    |
34 LL |         if *l == *r {
35    |            +     +
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0015`.