]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-integer-bool-ops.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / const-integer-bool-ops.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/const-integer-bool-ops.rs:1:18
b7449926
XL
3 |
4LL | const X: usize = 42 && 39;
60c5eb7d 5 | ^^ expected `bool`, found integer
b7449926
XL
6
7error[E0308]: mismatched types
0731742a 8 --> $DIR/const-integer-bool-ops.rs:1:24
b7449926
XL
9 |
10LL | const X: usize = 42 && 39;
60c5eb7d 11 | ^^ expected `bool`, found integer
b7449926
XL
12
13error[E0308]: mismatched types
0731742a 14 --> $DIR/const-integer-bool-ops.rs:1:18
b7449926
XL
15 |
16LL | const X: usize = 42 && 39;
60c5eb7d 17 | ^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
18
19error[E0308]: mismatched types
ba9703b0 20 --> $DIR/const-integer-bool-ops.rs:10:19
b7449926
XL
21 |
22LL | const X1: usize = 42 || 39;
60c5eb7d 23 | ^^ expected `bool`, found integer
b7449926
XL
24
25error[E0308]: mismatched types
ba9703b0 26 --> $DIR/const-integer-bool-ops.rs:10:25
b7449926
XL
27 |
28LL | const X1: usize = 42 || 39;
60c5eb7d 29 | ^^ expected `bool`, found integer
b7449926
XL
30
31error[E0308]: mismatched types
ba9703b0 32 --> $DIR/const-integer-bool-ops.rs:10:19
b7449926
XL
33 |
34LL | const X1: usize = 42 || 39;
60c5eb7d 35 | ^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
36
37error[E0308]: mismatched types
ba9703b0 38 --> $DIR/const-integer-bool-ops.rs:19:19
b7449926
XL
39 |
40LL | const X2: usize = -42 || -39;
60c5eb7d 41 | ^^^ expected `bool`, found integer
b7449926
XL
42
43error[E0308]: mismatched types
ba9703b0 44 --> $DIR/const-integer-bool-ops.rs:19:26
b7449926
XL
45 |
46LL | const X2: usize = -42 || -39;
60c5eb7d 47 | ^^^ expected `bool`, found integer
b7449926
XL
48
49error[E0308]: mismatched types
ba9703b0 50 --> $DIR/const-integer-bool-ops.rs:19:19
b7449926
XL
51 |
52LL | const X2: usize = -42 || -39;
60c5eb7d 53 | ^^^^^^^^^^ expected `usize`, found `bool`
b7449926 54
a1dfa0c6 55error[E0308]: mismatched types
ba9703b0 56 --> $DIR/const-integer-bool-ops.rs:28:19
a1dfa0c6 57 |
b7449926 58LL | const X3: usize = -42 && -39;
60c5eb7d 59 | ^^^ expected `bool`, found integer
b7449926
XL
60
61error[E0308]: mismatched types
ba9703b0 62 --> $DIR/const-integer-bool-ops.rs:28:26
b7449926
XL
63 |
64LL | const X3: usize = -42 && -39;
60c5eb7d 65 | ^^^ expected `bool`, found integer
b7449926
XL
66
67error[E0308]: mismatched types
ba9703b0 68 --> $DIR/const-integer-bool-ops.rs:28:19
b7449926
XL
69 |
70LL | const X3: usize = -42 && -39;
60c5eb7d 71 | ^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
72
73error[E0308]: mismatched types
ba9703b0 74 --> $DIR/const-integer-bool-ops.rs:37:18
b7449926
XL
75 |
76LL | const Y: usize = 42.0 == 42.0;
60c5eb7d 77 | ^^^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
78
79error[E0308]: mismatched types
ba9703b0 80 --> $DIR/const-integer-bool-ops.rs:42:19
b7449926
XL
81 |
82LL | const Y1: usize = 42.0 >= 42.0;
60c5eb7d 83 | ^^^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
84
85error[E0308]: mismatched types
ba9703b0 86 --> $DIR/const-integer-bool-ops.rs:47:19
b7449926
XL
87 |
88LL | const Y2: usize = 42.0 <= 42.0;
60c5eb7d 89 | ^^^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
90
91error[E0308]: mismatched types
ba9703b0 92 --> $DIR/const-integer-bool-ops.rs:52:19
b7449926
XL
93 |
94LL | const Y3: usize = 42.0 > 42.0;
60c5eb7d 95 | ^^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
96
97error[E0308]: mismatched types
ba9703b0 98 --> $DIR/const-integer-bool-ops.rs:57:19
b7449926
XL
99 |
100LL | const Y4: usize = 42.0 < 42.0;
60c5eb7d 101 | ^^^^^^^^^^^ expected `usize`, found `bool`
b7449926
XL
102
103error[E0308]: mismatched types
ba9703b0 104 --> $DIR/const-integer-bool-ops.rs:62:19
b7449926
XL
105 |
106LL | const Y5: usize = 42.0 != 42.0;
60c5eb7d 107 | ^^^^^^^^^^^^ expected `usize`, found `bool`
b7449926 108
ba9703b0 109error: aborting due to 18 previous errors
b7449926 110
ba9703b0 111For more information about this error, try `rustc --explain E0308`.