diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/question_mark.fixed')
| -rw-r--r-- | src/tools/clippy/tests/ui/question_mark.fixed | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/question_mark.fixed b/src/tools/clippy/tests/ui/question_mark.fixed index b6e148e9f77..8dfef3202be 100644 --- a/src/tools/clippy/tests/ui/question_mark.fixed +++ b/src/tools/clippy/tests/ui/question_mark.fixed @@ -141,6 +141,7 @@ fn func_returning_result() -> Result<i32, i32> { fn result_func(x: Result<i32, i32>) -> Result<i32, i32> { let _ = x?; + //~^ question_mark x?; @@ -371,5 +372,6 @@ fn issue12412(foo: &Foo, bar: &Bar) -> Option<()> { }; // lint let v = bar.foo.owned.clone()?; + //~^^^ question_mark Some(()) } |
