]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/concurrency/windows_join_detached.stderr
Rollup merge of #101644 - Timmmm:file_permissions_docs, r=thomcc
[rust.git] / src / tools / miri / tests / fail / concurrency / windows_join_detached.stderr
1 error: Undefined Behavior: trying to join a detached thread
2   --> RUSTLIB/std/src/sys/PLATFORM/thread.rs:LL:CC
3    |
4 LL |         let rc = unsafe { c::WaitForSingleObject(self.handle.as_raw_handle(), c::INFINITE) };
5    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ trying to join a detached thread
6    |
7    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
9    = note: BACKTRACE:
10    = note: inside `std::sys::PLATFORM::thread::Thread::join` at RUSTLIB/std/src/sys/PLATFORM/thread.rs:LL:CC
11    = note: inside `std::thread::JoinInner::<'_, ()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
12    = note: inside `std::thread::JoinHandle::<()>::join` at RUSTLIB/std/src/thread/mod.rs:LL:CC
13 note: inside `main` at $DIR/windows_join_detached.rs:LL:CC
14   --> $DIR/windows_join_detached.rs:LL:CC
15    |
16 LL |     thread.join().unwrap();
17    |     ^^^^^^^^^^^^^
18
19 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
20
21 error: aborting due to previous error
22