]> git.lizzy.rs Git - rust.git/commit
Infer type ! for a loop that can only break out of other loops
authorAnders Kaseorg <andersk@mit.edu>
Wed, 18 Mar 2015 05:19:53 +0000 (01:19 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 18 Mar 2015 05:29:23 +0000 (01:29 -0400)
commit7364022e7ae4b738fb585dd2262ad67ceebd4266
treeb7f670d528f54e3dc867ef9c20473ff62cd37ed3
parentbfac337daab9b86971bcb3db61382ac44f94621c
Infer type ! for a loop that can only break out of other loops

Closes #23451.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
src/librustc_typeck/check/mod.rs
src/test/compile-fail/loop-labeled-break-value.rs [new file with mode: 0644]
src/test/run-pass/loop-labeled-break-value.rs [new file with mode: 0644]