File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed
Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11//@ check-pass
22
33#![ warn( unused_must_use) ]
4- #![ feature( never_type) ]
54
65use std:: ops:: Add ;
76use std:: ops:: Sub ;
Original file line number Diff line number Diff line change 11warning: unused return value of `add` that must be used
2- --> $DIR/issue-103320-must-use-ops.rs:16 :5
2+ --> $DIR/issue-103320-must-use-ops.rs:15 :5
33 |
44LL | x.add(4);
55 | ^^^^^^^^
@@ -16,7 +16,7 @@ LL | let _ = x.add(4);
1616 | +++++++
1717
1818warning: unused return value of `sub` that must be used
19- --> $DIR/issue-103320-must-use-ops.rs:18 :5
19+ --> $DIR/issue-103320-must-use-ops.rs:17 :5
2020 |
2121LL | x.sub(4);
2222 | ^^^^^^^^
@@ -28,7 +28,7 @@ LL | let _ = x.sub(4);
2828 | +++++++
2929
3030warning: unused return value of `mul` that must be used
31- --> $DIR/issue-103320-must-use-ops.rs:20 :5
31+ --> $DIR/issue-103320-must-use-ops.rs:19 :5
3232 |
3333LL | x.mul(4);
3434 | ^^^^^^^^
@@ -40,7 +40,7 @@ LL | let _ = x.mul(4);
4040 | +++++++
4141
4242warning: unused return value of `div` that must be used
43- --> $DIR/issue-103320-must-use-ops.rs:22 :5
43+ --> $DIR/issue-103320-must-use-ops.rs:21 :5
4444 |
4545LL | x.div(4);
4646 | ^^^^^^^^
@@ -52,7 +52,7 @@ LL | let _ = x.div(4);
5252 | +++++++
5353
5454warning: unused return value of `rem` that must be used
55- --> $DIR/issue-103320-must-use-ops.rs:24 :5
55+ --> $DIR/issue-103320-must-use-ops.rs:23 :5
5656 |
5757LL | x.rem(4);
5858 | ^^^^^^^^
Original file line number Diff line number Diff line change 11//@ check-pass
22
33#![ feature( auto_traits) ]
4- #![ feature( negative_impls) ]
54#![ feature( never_type) ]
65
76fn main ( ) {
Original file line number Diff line number Diff line change 88//@ ignore-backends: gcc
99
1010#![ feature( rustc_private) ]
11- #![ feature( never_type) ]
1211#![ feature( panic_always_abort) ]
1312
1413#![ allow( invalid_from_utf8) ]
You can’t perform that action at this time.
0 commit comments