Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
lint
/
must_not_suspend
/
mutex.rs
blob: 7bb895e7d36438f143181273f304f4d2c017f374 [
file
] [
log
] [
blame
]
// edition:2018
#![
feature
(
must_not_suspend
)]
#![
deny
(
must_not_suspend
)]
async
fn
other
()
{}
pub
async
fn
uhoh
(
m
:
std
::
sync
::
Mutex
<()>)
{
let
_guard
=
m
.
lock
().
unwrap
();
//~ ERROR `MutexGuard` held across
other
().
await
;
}
fn
main
()
{
}