]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_question_mark.stderr
update the lint messages and tests
[rust.git] / tests / ui / needless_question_mark.stderr
1 error: question mark operator is useless here
2   --> $DIR/needless_question_mark.rs:23:12
3    |
4 LL |     return Some(to.magic?);
5    |            ^^^^^^^^^^^^^^^ help: try: `to.magic`
6    |
7    = note: `-D clippy::needless-question-mark` implied by `-D warnings`
8
9 error: question mark operator is useless here
10   --> $DIR/needless_question_mark.rs:31:12
11    |
12 LL |     return Some(to.magic?)
13    |            ^^^^^^^^^^^^^^^ help: try: `to.magic`
14
15 error: question mark operator is useless here
16   --> $DIR/needless_question_mark.rs:36:5
17    |
18 LL |     Some(to.magic?)
19    |     ^^^^^^^^^^^^^^^ help: try: `to.magic`
20
21 error: question mark operator is useless here
22   --> $DIR/needless_question_mark.rs:41:21
23    |
24 LL |     to.and_then(|t| Some(t.magic?))
25    |                     ^^^^^^^^^^^^^^ help: try: `t.magic`
26
27 error: question mark operator is useless here
28   --> $DIR/needless_question_mark.rs:50:9
29    |
30 LL |         Some(t.magic?)
31    |         ^^^^^^^^^^^^^^ help: try: `t.magic`
32
33 error: question mark operator is useless here
34   --> $DIR/needless_question_mark.rs:55:12
35    |
36 LL |     return Ok(tr.magic?);
37    |            ^^^^^^^^^^^^^ help: try: `tr.magic`
38
39 error: question mark operator is useless here
40   --> $DIR/needless_question_mark.rs:62:12
41    |
42 LL |     return Ok(tr.magic?)
43    |            ^^^^^^^^^^^^^ help: try: `tr.magic`
44
45 error: question mark operator is useless here
46   --> $DIR/needless_question_mark.rs:66:5
47    |
48 LL |     Ok(tr.magic?)
49    |     ^^^^^^^^^^^^^ help: try: `tr.magic`
50
51 error: question mark operator is useless here
52   --> $DIR/needless_question_mark.rs:70:21
53    |
54 LL |     tr.and_then(|t| Ok(t.magic?))
55    |                     ^^^^^^^^^^^^ help: try: `t.magic`
56
57 error: question mark operator is useless here
58   --> $DIR/needless_question_mark.rs:78:9
59    |
60 LL |         Ok(t.magic?)
61    |         ^^^^^^^^^^^^ help: try: `t.magic`
62
63 error: question mark operator is useless here
64   --> $DIR/needless_question_mark.rs:85:16
65    |
66 LL |         return Ok(t.magic?);
67    |                ^^^^^^^^^^^^ help: try: `t.magic`
68
69 error: question mark operator is useless here
70   --> $DIR/needless_question_mark.rs:138:9
71    |
72 LL |         Ok(to.magic?) // should be triggered
73    |         ^^^^^^^^^^^^^ help: try: `to.magic`
74
75 error: question mark operator is useless here
76   --> $DIR/needless_question_mark.rs:154:9
77    |
78 LL |         Some(to.magic?) // should be triggered
79    |         ^^^^^^^^^^^^^^^ help: try: `to.magic`
80
81 error: question mark operator is useless here
82   --> $DIR/needless_question_mark.rs:162:9
83    |
84 LL |         Ok(to.magic?) // should be triggered
85    |         ^^^^^^^^^^^^^ help: try: `to.magic`
86
87 error: aborting due to 14 previous errors
88