]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/no-non-guaranteed-initialization.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / async-await / no-non-guaranteed-initialization.rs
index 24070fe33083ca28fbfb0431d2c9264da6e2a72e..c4d81bf83a3c43caadb487b010526a1864b3d743 100644 (file)
@@ -6,8 +6,7 @@ async fn no_non_guaranteed_initialization(x: usize) -> usize {
     if x > 5 {
         y = echo(10).await;
     }
-    y
-    //~^ use of possibly-uninitialized variable: `y`
+    y //~ ERROR E0381
 }
 
 async fn echo(x: usize) -> usize { x + 1 }