]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54062.stderr
Give method not found a primary span label
[rust.git] / src / test / ui / issues / issue-54062.stderr
1 error[E0616]: field `inner` of struct `std::sync::Mutex` is private
2   --> $DIR/issue-54062.rs:10:13
3    |
4 LL |     let _ = test.comps.inner.lock().unwrap();
5    |             ^^^^^^^^^^^^^^^^
6
7 error[E0599]: no method named `unwrap` found for type `std::sys_common::mutex::MutexGuard<'_>` in the current scope
8   --> $DIR/issue-54062.rs:10:37
9    |
10 LL |     let _ = test.comps.inner.lock().unwrap();
11    |                                     ^^^^^^ method not found in `std::sys_common::mutex::MutexGuard<'_>`
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`.