// Copyright (C) 2025 Daniel Mueller <deso@posteo.net>
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
usetest_fork_core::fork;usetest_fork_core::fork_id;/// Check that we cannot mutably capture a variable in the function
/// running in the child.
fnenv_mut_capture(){letmut x =0;fork(fork_id!(),"env_mut_capture",||{
x +=1;}).unwrap()}fnmain(){}