rust/src/test/ui/issues/issue-54062.stderr

17 lines
672 B
Plaintext
Raw Normal View History

error[E0616]: field `inner` of struct `Mutex` is private
2020-03-22 18:18:06 +00:00
--> $DIR/issue-54062.rs:10:24
2019-07-26 08:39:58 +00:00
|
LL | let _ = test.comps.inner.lock().unwrap();
2020-03-22 18:18:06 +00:00
| ^^^^^ private field
2019-07-26 08:39:58 +00:00
error[E0599]: no method named `unwrap` found for struct `std::sys_common::mutex::MutexGuard<'_>` in the current scope
2019-07-26 08:39:58 +00:00
--> $DIR/issue-54062.rs:10:37
|
LL | let _ = test.comps.inner.lock().unwrap();
| ^^^^^^ method not found in `std::sys_common::mutex::MutexGuard<'_>`
2019-07-26 08:39:58 +00:00
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0599, E0616.
For more information about an error, try `rustc --explain E0599`.