This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-05-01 04:27:38 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
300901b705
rust
/
tests
/
ui
/
error-codes
/
E0767.rs
9 lines
145 B
Rust
Raw
Normal View
History
Unescape
Escape
Remove has_errors from FnCtxt
2022-11-02 02:13:27 +00:00
fn
main
(
)
{
resolve: disallow label use through closure/async This commit modifies resolve to disallow `break`/`continue` to labels through closures or async blocks. This doesn't make sense and should have been prohibited anyway. Signed-off-by: David Wood <david@davidtw.co>
2020-06-25 14:16:38 +00:00
'
a
:
loop
{
|
|
{
Remove has_errors from FnCtxt
2022-11-02 02:13:27 +00:00
//~^ ERROR mismatched types
resolve: disallow label use through closure/async This commit modifies resolve to disallow `break`/`continue` to labels through closures or async blocks. This doesn't make sense and should have been prohibited anyway. Signed-off-by: David Wood <david@davidtw.co>
2020-06-25 14:16:38 +00:00
loop
{
break
'a
;
}
//~ ERROR E0767
}
}
}
Reference in New Issue
Copy Permalink