89314a0805
This lint complains when the question mark operator (try operator) is used. This is a restriction lint that can be useful on local scopes where a custom error handling macro is supposed to be used to augment the error based on local scope data before returning.
12 lines
311 B
Plaintext
12 lines
311 B
Plaintext
error: question mark operator was used
|
|
--> $DIR/question_mark_used.rs:11:5
|
|
|
|
|
LL | other_function()?;
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider using a custom macro or match expression
|
|
= note: `-D clippy::question-mark-used` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|