about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-8850.stderr
blob: 1a44f103beb393559ea720b159329dea9701133b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error: returning the result of a `let` binding from a block
  --> tests/ui/crashes/ice-8850.rs:4:5
   |
LL |     let res = FN() + 1;
   |     ------------------- unnecessary `let` binding
LL |     res
   |     ^^^
   |
   = note: `-D clippy::let-and-return` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::let_and_return)]`
help: return the expression directly
   |
LL ~     
LL ~     FN() + 1
   |

error: returning the result of a `let` binding from a block
  --> tests/ui/crashes/ice-8850.rs:11:5
   |
LL |     let res = FN() + 1;
   |     ------------------- unnecessary `let` binding
LL |     res
   |     ^^^
   |
help: return the expression directly
   |
LL ~     
LL ~     FN() + 1
   |

error: returning the result of a `let` binding from a block
  --> tests/ui/crashes/ice-8850.rs:26:5
   |
LL |     let res = FN() + 1;
   |     ------------------- unnecessary `let` binding
LL |     res
   |     ^^^
   |
help: return the expression directly
   |
LL ~     
LL ~     FN() + 1
   |

error: aborting due to 3 previous errors