fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: unused return value of `foo` that must be used 2 --> $DIR/must-use-block-expr.rs:13:9 3 | 4LL | foo(); 5 | ^^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/must-use-block-expr.rs:4:9 9 | 10LL | #![warn(unused_must_use)] 11 | ^^^^^^^^^^^^^^^ 12help: use `let _ = ...` to ignore the resulting value 13 | 14LL | let _ = foo(); 15 | +++++++ 16 17warning: unused return value of `foo` that must be used 18 --> $DIR/must-use-block-expr.rs:20:9 19 | 20LL | foo() 21 | ^^^^^ 22 | 23help: use `let _ = ...` to ignore the resulting value 24 | 25LL | let _ = foo(); 26 | +++++++ + 27 28warning: unused arithmetic operation that must be used 29 --> $DIR/must-use-block-expr.rs:29:9 30 | 31LL | 1 + 2; 32 | ^^^^^ the arithmetic operation produces a value 33 | 34help: use `let _ = ...` to ignore the resulting value 35 | 36LL | let _ = 1 + 2; 37 | +++++++ 38 39warning: unused arithmetic operation that must be used 40 --> $DIR/must-use-block-expr.rs:33:9 41 | 42LL | 1 + 2 43 | ^^^^^ the arithmetic operation produces a value 44 | 45help: use `let _ = ...` to ignore the resulting value 46 | 47LL | let _ = 1 + 2; 48 | +++++++ + 49 50warning: 4 warnings emitted 51