Stabilize THIR unsafeck
This commit is contained in:
parent
982b49494e
commit
26f48b4cba
67 changed files with 331 additions and 353 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue