File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
error: ignoring a result with `.ok()` is misleading
2
- --> $DIR /unused_result_ok.rs:9:5
2
+ --> tests/ui /unused_result_ok.rs:9:5
3
3
|
4
4
LL | x.parse::<u32>().ok();
5
5
| ^^^^^^^^^^^^^^^^^^^^^
@@ -12,7 +12,7 @@ LL | let _ = x.parse::<u32>();
12
12
| ~~~~~~~~~~~~~~~~~~~~~~~~
13
13
14
14
error: ignoring a result with `.ok()` is misleading
15
- --> $DIR /unused_result_ok.rs:18:5
15
+ --> tests/ui /unused_result_ok.rs:18:5
16
16
|
17
17
LL | x . parse::<i32>() . ok ();
18
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | let _ = x . parse::<i32>();
23
23
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
24
25
25
error: ignoring a result with `.ok()` is misleading
26
- --> $DIR /unused_result_ok.rs:34:5
26
+ --> tests/ui /unused_result_ok.rs:34:5
27
27
|
28
28
LL | v!().ok();
29
29
| ^^^^^^^^^
@@ -34,7 +34,7 @@ LL | let _ = v!();
34
34
| ~~~~~~~~~~~~
35
35
36
36
error: ignoring a result with `.ok()` is misleading
37
- --> $DIR /unused_result_ok.rs:29:9
37
+ --> tests/ui /unused_result_ok.rs:29:9
38
38
|
39
39
LL | Ok::<(), ()>(()).ok();
40
40
| ^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments