rust/tests/ui/typeck/issue-88803-call-expr-metho...

10 lines
140 B
Rust

//@ run-rustfix
fn main() {
let a = Some(42);
println!(
"The value is {}.",
(a.unwrap)() //~ERROR [E0615]
);
}