fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: returning the result of a `let` binding from a block 2 --> $DIR/ice-8850.rs:4:5 3 | 4LL | let res = FN() + 1; 5 | ------------------- unnecessary `let` binding 6LL | res 7 | ^^^ 8 | 9 = note: `-D clippy::let-and-return` implied by `-D warnings` 10 = help: to override `-D warnings` add `#[allow(clippy::let_and_return)]` 11help: return the expression directly 12 | 13LL ~ 14LL ~ FN() + 1 15 | 16 17error: returning the result of a `let` binding from a block 18 --> $DIR/ice-8850.rs:12:5 19 | 20LL | let res = FN() + 1; 21 | ------------------- unnecessary `let` binding 22LL | res 23 | ^^^ 24 | 25help: return the expression directly 26 | 27LL ~ 28LL ~ FN() + 1 29 | 30 31error: returning the result of a `let` binding from a block 32 --> $DIR/ice-8850.rs:27:5 33 | 34LL | let res = FN() + 1; 35 | ------------------- unnecessary `let` binding 36LL | res 37 | ^^^ 38 | 39help: return the expression directly 40 | 41LL ~ 42LL ~ FN() + 1 43 | 44 45error: aborting due to 3 previous errors 46