Skip to content

Commit c2ca5fa

Browse files
committed
Fix issue 54062 ui test
since the name of the private field changed
1 parent 3a2485b commit c2ca5fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ui/issues/issue-54062.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ struct Test {
77
fn main() {}
88

99
fn testing(test: Test) {
10-
let _ = test.comps.inner.try_lock();
11-
//~^ ERROR: field `inner` of struct `Mutex` is private
10+
let _ = test.comps.state.inner.try_lock();
11+
//~^ ERROR: field `state` of struct `Mutex` is private
1212
}

tests/ui/issues/issue-54062.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0616]: field `inner` of struct `Mutex` is private
1+
error[E0616]: field `state` of struct `Mutex` is private
22
--> $DIR/issue-54062.rs:10:24
33
|
4-
LL | let _ = test.comps.inner.try_lock();
4+
LL | let _ = test.comps.state.inner.try_lock();
55
| ^^^^^ private field
66

77
error: aborting due to previous error

0 commit comments

Comments
 (0)