This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
f495605381
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-01 21:13:27 -05: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 09:16:38 -05:00
'
a
:
loop
{
|
|
{
Remove has_errors from FnCtxt
2022-11-01 21:13:27 -05: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 09:16:38 -05:00
loop
{
break
'a
;
}
//~ ERROR E0767
}
}
}
Reference in New Issue
Copy Permalink