]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/loops/loop-properly-diverging-2.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / loops / loop-properly-diverging-2.stderr
index 6293fdb058a0fba68610f8cb5ae221a8703aad1f..9b4329ded18bd767cd0cc6a6149fdfff98202f66 100644 (file)
@@ -2,10 +2,10 @@ error[E0308]: mismatched types
   --> $DIR/loop-properly-diverging-2.rs:2:23
    |
 LL |   let x: i32 = loop { break };
-   |                       ^^^^^ expected (), found i32
-   |
-   = note: expected type `()`
-              found type `i32`
+   |                       ^^^^^
+   |                       |
+   |                       expected i32, found ()
+   |                       help: give it a value of the expected type: `break 42`
 
 error: aborting due to previous error