test E0133 when calling free/impl async unsafe fn
in async fn
This commit is contained in:
parent
e65c1c44a2
commit
60f480dacb
2 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue