1 warning: unused return value of `need_to_use_this_value` that must be used
2 --> $DIR/fn_must_use.rs:55:5
4 LL | need_to_use_this_value(); //~ WARN unused return value
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: lint level defined here
8 --> $DIR/fn_must_use.rs:3:9
10 LL | #![warn(unused_must_use)]
12 = note: it's important
14 warning: unused return value of `MyStruct::need_to_use_this_method_value` that must be used
15 --> $DIR/fn_must_use.rs:60:5
17 LL | m.need_to_use_this_method_value(); //~ WARN unused return value
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 warning: unused return value of `EvenNature::is_even` that must be used
21 --> $DIR/fn_must_use.rs:61:5
23 LL | m.is_even(); // trait method!
26 = note: no side effects
28 warning: unused return value of `MyStruct::need_to_use_this_associated_function_value` that must be used
29 --> $DIR/fn_must_use.rs:64:5
31 LL | MyStruct::need_to_use_this_associated_function_value();
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 warning: unused return value of `std::cmp::PartialEq::eq` that must be used
35 --> $DIR/fn_must_use.rs:70:5
37 LL | 2.eq(&3); //~ WARN unused return value
40 warning: unused return value of `std::cmp::PartialEq::eq` that must be used
41 --> $DIR/fn_must_use.rs:71:5
43 LL | m.eq(&n); //~ WARN unused return value
46 warning: unused comparison that must be used
47 --> $DIR/fn_must_use.rs:74:5
49 LL | 2 == 3; //~ WARN unused comparison
52 warning: unused comparison that must be used
53 --> $DIR/fn_must_use.rs:75:5
55 LL | m == n; //~ WARN unused comparison