blob: ebae93cee2b3415f1426bf049d64fe084c4683a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0615]: attempted to take value of method `unwrap` on type `Option<{integer}>`
--> $DIR/issue-88803-call-expr-method.rs:7:12
|
LL | (a.unwrap)()
| ^^^^^^ method, not a field
|
help: remove wrapping parentheses to call the method
|
LL - (a.unwrap)()
LL + a.unwrap()
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0615`.
|