mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
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.
11 lines
311 B
Text
11 lines
311 B
Text
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
|
|
|