fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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