]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | error[E0616]: field `inner` of struct `std::sync::Mutex` is private |
ba9703b0 | 2 | --> $DIR/issue-54062.rs:10:24 |
416331ca XL |
3 | | |
4 | LL | let _ = test.comps.inner.lock().unwrap(); | |
ba9703b0 | 5 | | ^^^^^ private field |
416331ca | 6 | |
dfeec247 | 7 | error[E0599]: no method named `unwrap` found for struct `std::sys_common::mutex::MutexGuard<'_>` in the current scope |
416331ca XL |
8 | --> $DIR/issue-54062.rs:10:37 |
9 | | | |
10 | LL | let _ = test.comps.inner.lock().unwrap(); | |
e1599b0c | 11 | | ^^^^^^ method not found in `std::sys_common::mutex::MutexGuard<'_>` |
416331ca XL |
12 | |
13 | error: aborting due to 2 previous errors | |
14 | ||
15 | Some errors have detailed explanations: E0599, E0616. | |
16 | For more information about an error, try `rustc --explain E0599`. |