1
Fork 0

Stabilize THIR unsafeck

This commit is contained in:
Matthew Jasper 2023-12-07 11:56:48 +00:00
parent 982b49494e
commit 26f48b4cba
67 changed files with 331 additions and 353 deletions

View file

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