diff options
Diffstat (limited to 'tests/ui/typeck/issue-88803-call-expr-method.rs')
-rw-r--r-- | tests/ui/typeck/issue-88803-call-expr-method.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/typeck/issue-88803-call-expr-method.rs b/tests/ui/typeck/issue-88803-call-expr-method.rs new file mode 100644 index 000000000..a06199466 --- /dev/null +++ b/tests/ui/typeck/issue-88803-call-expr-method.rs @@ -0,0 +1,9 @@ +// run-rustfix + +fn main() { + let a = Some(42); + println!( + "The value is {}.", + (a.unwrap)() //~ERROR [E0615] + ); +} |