rust/tests/ui/lint/must_not_suspend/return.rs

10 lines
164 B
Rust

//@ edition:2018
#![feature(must_not_suspend)]
#![deny(must_not_suspend)]
#[must_not_suspend] //~ ERROR attribute should be
fn foo() -> i32 {
0
}
fn main() {}