]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must-use-ops.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / must-use-ops.stderr
1 warning: unused comparison that must be used
2   --> $DIR/must-use-ops.rs:12:5
3    |
4 LL |     val == 1;
5    |     ^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/must-use-ops.rs:5:9
9    |
10 LL | #![warn(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12
13 warning: unused comparison that must be used
14   --> $DIR/must-use-ops.rs:13:5
15    |
16 LL |     val < 1;
17    |     ^^^^^^^
18
19 warning: unused comparison that must be used
20   --> $DIR/must-use-ops.rs:14:5
21    |
22 LL |     val <= 1;
23    |     ^^^^^^^^
24
25 warning: unused comparison that must be used
26   --> $DIR/must-use-ops.rs:15:5
27    |
28 LL |     val != 1;
29    |     ^^^^^^^^
30
31 warning: unused comparison that must be used
32   --> $DIR/must-use-ops.rs:16:5
33    |
34 LL |     val >= 1;
35    |     ^^^^^^^^
36
37 warning: unused comparison that must be used
38   --> $DIR/must-use-ops.rs:17:5
39    |
40 LL |     val > 1;
41    |     ^^^^^^^
42
43 warning: unused arithmetic operation that must be used
44   --> $DIR/must-use-ops.rs:20:5
45    |
46 LL |     val + 2;
47    |     ^^^^^^^
48
49 warning: unused arithmetic operation that must be used
50   --> $DIR/must-use-ops.rs:21:5
51    |
52 LL |     val - 2;
53    |     ^^^^^^^
54
55 warning: unused arithmetic operation that must be used
56   --> $DIR/must-use-ops.rs:22:5
57    |
58 LL |     val / 2;
59    |     ^^^^^^^
60
61 warning: unused arithmetic operation that must be used
62   --> $DIR/must-use-ops.rs:23:5
63    |
64 LL |     val * 2;
65    |     ^^^^^^^
66
67 warning: unused arithmetic operation that must be used
68   --> $DIR/must-use-ops.rs:24:5
69    |
70 LL |     val % 2;
71    |     ^^^^^^^
72
73 warning: unused logical operation that must be used
74   --> $DIR/must-use-ops.rs:27:5
75    |
76 LL |     true && true;
77    |     ^^^^^^^^^^^^
78
79 warning: unused logical operation that must be used
80   --> $DIR/must-use-ops.rs:28:5
81    |
82 LL |     false || true;
83    |     ^^^^^^^^^^^^^
84
85 warning: unused bitwise operation that must be used
86   --> $DIR/must-use-ops.rs:31:5
87    |
88 LL |     5 ^ val;
89    |     ^^^^^^^
90
91 warning: unused bitwise operation that must be used
92   --> $DIR/must-use-ops.rs:32:5
93    |
94 LL |     5 & val;
95    |     ^^^^^^^
96
97 warning: unused bitwise operation that must be used
98   --> $DIR/must-use-ops.rs:33:5
99    |
100 LL |     5 | val;
101    |     ^^^^^^^
102
103 warning: unused bitwise operation that must be used
104   --> $DIR/must-use-ops.rs:34:5
105    |
106 LL |     5 << val;
107    |     ^^^^^^^^
108
109 warning: unused bitwise operation that must be used
110   --> $DIR/must-use-ops.rs:35:5
111    |
112 LL |     5 >> val;
113    |     ^^^^^^^^
114
115 warning: unused unary operation that must be used
116   --> $DIR/must-use-ops.rs:38:5
117    |
118 LL |     !val;
119    |     ^^^^
120
121 warning: unused unary operation that must be used
122   --> $DIR/must-use-ops.rs:39:5
123    |
124 LL |     -val;
125    |     ^^^^
126
127 warning: unused unary operation that must be used
128   --> $DIR/must-use-ops.rs:40:5
129    |
130 LL |     *val_pointer;
131    |     ^^^^^^^^^^^^
132
133 warning: 21 warnings emitted
134