summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/no_effect_return.stderr
blob: aed079f09b9869c39e7ea626922c5565691b33bd (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
error: statement with no effect
  --> $DIR/no_effect_return.rs:9:9
   |
LL |         0u32;
   |         -^^^^
   |         |
   |         help: did you mean to return it?: `return`
   |
   = note: `-D clippy::no-effect` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::no_effect)]`

error: statement with no effect
  --> $DIR/no_effect_return.rs:18:9
   |
LL |         0u32;
   |         -^^^^
   |         |
   |         help: did you mean to return it?: `return`

error: statement with no effect
  --> $DIR/no_effect_return.rs:27:9
   |
LL |         0i32 as C;
   |         -^^^^^^^^^
   |         |
   |         help: did you mean to return it?: `return`

error: statement with no effect
  --> $DIR/no_effect_return.rs:36:9
   |
LL |         0u128;
   |         ^^^^^^

error: statement with no effect
  --> $DIR/no_effect_return.rs:46:9
   |
LL |         0u16;
   |         ^^^^^

error: statement with no effect
  --> $DIR/no_effect_return.rs:54:9
   |
LL |         [1u16];
   |         -^^^^^^
   |         |
   |         help: did you mean to return it?: `return`

error: statement with no effect
  --> $DIR/no_effect_return.rs:62:9
   |
LL |         ControlFlow::Break::<()>(());
   |         -^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |         |
   |         help: did you mean to return it?: `return`

error: statement with no effect
  --> $DIR/no_effect_return.rs:80:9
   |
LL |         ();
   |         ^^^

error: statement with no effect
  --> $DIR/no_effect_return.rs:89:9
   |
LL |         ();
   |         ^^^

error: aborting due to 9 previous errors