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