Gitiles
Code Review
Sign In
android-review.linaro.org
/
toolchain
/
rustc
/
refs/heads/master
/
.
/
tests
/
ui
/
lint
/
must_not_suspend
/
gated.rs
blob: 3c618f0a3dc5e15b856c00b5e68685ad755697d5 [
file
] [
log
] [
blame
]
//@ check-pass
//@ edition:2018
#![
deny
(
must_not_suspend
)]
//~^ WARNING unknown lint: `must_not_suspend`
async
fn
other
()
{}
pub
async
fn
uhoh
(
m
:
std
::
sync
::
Mutex
<()>)
{
let
_guard
=
m
.
lock
().
unwrap
();
other
().
await
;
}
fn
main
()
{
}