]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/async-await/async-unsafe-fn-call-in-safe.rs
Rollup merge of #103570 - lukas-code:stabilize-ilog, r=scottmcm
[rust.git] / src / test / ui / async-await / async-unsafe-fn-call-in-safe.rs
index fc37822cb7b6c018f3dd59e5eb0ee91cce2cec4d..c941dc27aa307dcf2f9d4b9c1e31fd483bf83d2f 100644 (file)
@@ -11,8 +11,12 @@ 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
+    S::f();
+    //[mir]~^ ERROR call to unsafe function is unsafe
+    //[thir]~^^ ERROR call to unsafe function `S::f` is unsafe
+    f();
+    //[mir]~^ ERROR call to unsafe function is unsafe
+    //[thir]~^^ ERROR call to unsafe function `f` is unsafe
 }
 
 fn main() {