1
Fork 0

test E0133 when calling free/impl async unsafe fn in async fn

This commit is contained in:
Delan Azabani 2019-07-12 14:43:52 +10:00
parent e65c1c44a2
commit 60f480dacb
2 changed files with 22 additions and 1 deletions

View file

@ -10,6 +10,11 @@ impl S {
async unsafe fn f() {}
async fn g() {
S::f(); //~ ERROR call to unsafe function is unsafe
f(); //~ ERROR call to unsafe function is unsafe
}
fn main() {
S::f(); //~ ERROR call to unsafe function is unsafe
f(); //~ ERROR call to unsafe function is unsafe