Skip to content

Commit e5c2412

Browse files
committed
Add the corrections stuff to the 88803 test case
1 parent 5dab3c5 commit e5c2412

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// run-rustfix
2+
3+
fn main() {
4+
let a = Some(42);
5+
println!(
6+
"The value is {}.",
7+
a.unwrap() //~ERROR [E0615]
8+
);
9+
}

src/test/ui/typeck/issue-88803-call-expr-method.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// run-rustfix
2+
13
fn main() {
24
let a = Some(42);
35
println!(

src/test/ui/typeck/issue-88803-call-expr-method.stderr

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

0 commit comments

Comments
 (0)