Do not suggest using ! with break

This commit is contained in:
Esteban Küber 2019-08-06 17:24:39 -07:00
parent c076392143
commit 799b13ada5
2 changed files with 2 additions and 4 deletions

View file

@ -90,10 +90,7 @@ error[E0308]: mismatched types
--> $DIR/loop-break-value.rs:4:31
|
LL | let val: ! = loop { break break; };
| ^^^^^
| |
| expected !, found ()
| help: give it a value of the expected type: `break value`
| ^^^^^ expected !, found ()
|
= note: expected type `!`
found type `()`