summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/unused-result.stderr
blob: f42995a65d13eadc51da96b262f48c8f9f9801f7 (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
error: unused `MustUse` that must be used
  --> $DIR/unused-result.rs:21:5
   |
LL |     foo::<MustUse>();
   |     ^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/unused-result.rs:2:25
   |
LL | #![deny(unused_results, unused_must_use)]
   |                         ^^^^^^^^^^^^^^^
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = foo::<MustUse>();
   |     +++++++

error: unused `MustUseMsg` that must be used
  --> $DIR/unused-result.rs:22:5
   |
LL |     foo::<MustUseMsg>();
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: some message
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = foo::<MustUseMsg>();
   |     +++++++

error: unused result of type `isize`
  --> $DIR/unused-result.rs:34:5
   |
LL |     foo::<isize>();
   |     ^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/unused-result.rs:2:9
   |
LL | #![deny(unused_results, unused_must_use)]
   |         ^^^^^^^^^^^^^^

error: unused `MustUse` that must be used
  --> $DIR/unused-result.rs:35:5
   |
LL |     foo::<MustUse>();
   |     ^^^^^^^^^^^^^^^^
   |
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = foo::<MustUse>();
   |     +++++++

error: unused `MustUseMsg` that must be used
  --> $DIR/unused-result.rs:36:5
   |
LL |     foo::<MustUseMsg>();
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: some message
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = foo::<MustUseMsg>();
   |     +++++++

error: aborting due to 5 previous errors