fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1warning: unused return value of `need_to_use_this_value` that must be used 2 --> $DIR/fn_must_use.rs:55:5 3 | 4LL | need_to_use_this_value(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/fn_must_use.rs:3:9 9 | 10LL | #![warn(unused_must_use)] 11 | ^^^^^^^^^^^^^^^ 12 = note: it's important 13 14warning: unused return value of `MyStruct::need_to_use_this_method_value` that must be used 15 --> $DIR/fn_must_use.rs:60:5 16 | 17LL | m.need_to_use_this_method_value(); 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 20warning: unused return value of `EvenNature::is_even` that must be used 21 --> $DIR/fn_must_use.rs:61:5 22 | 23LL | m.is_even(); // trait method! 24 | ^^^^^^^^^^^^ 25 | 26 = note: no side effects 27 28warning: unused return value of `MyStruct::need_to_use_this_associated_function_value` that must be used 29 --> $DIR/fn_must_use.rs:64:5 30 | 31LL | MyStruct::need_to_use_this_associated_function_value(); 32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 33 34warning: unused return value of `std::cmp::PartialEq::eq` that must be used 35 --> $DIR/fn_must_use.rs:70:5 36 | 37LL | 2.eq(&3); 38 | ^^^^^^^^^ 39 40warning: unused return value of `std::cmp::PartialEq::eq` that must be used 41 --> $DIR/fn_must_use.rs:71:5 42 | 43LL | m.eq(&n); 44 | ^^^^^^^^^ 45 46warning: unused comparison that must be used 47 --> $DIR/fn_must_use.rs:74:5 48 | 49LL | 2 == 3; 50 | ^^^^^^ 51 52warning: unused comparison that must be used 53 --> $DIR/fn_must_use.rs:75:5 54 | 55LL | m == n; 56 | ^^^^^^ 57