17 lines
255 B
Rust
17 lines
255 B
Rust
![]() |
// edition:2018
|
||
|
|
||
|
#![feature(async_await, async_closure)]
|
||
|
|
||
|
struct S;
|
||
|
|
||
|
impl S {
|
||
|
async unsafe fn f() {}
|
||
|
}
|
||
|
|
||
|
async unsafe fn f() {}
|
||
|
|
||
|
fn main() {
|
||
|
S::f(); //~ ERROR call to unsafe function is unsafe
|
||
|
f(); //~ ERROR call to unsafe function is unsafe
|
||
|
}
|