Add the corrections stuff to the 88803 test case

This commit is contained in:
Michael Howell 2021-09-10 18:34:51 -07:00
parent 5dab3c5cf5
commit e5c2412e52
3 changed files with 12 additions and 1 deletions

View file

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

View file

@ -1,3 +1,5 @@
// run-rustfix
fn main() {
let a = Some(42);
println!(

View file

@ -1,5 +1,5 @@
error[E0615]: attempted to take value of method `unwrap` on type `Option<{integer}>`
--> $DIR/issue-88803-call-expr-method.rs:5:12
--> $DIR/issue-88803-call-expr-method.rs:7:12
|
LL | (a.unwrap)()
| ---^^^^^^-