Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
8152da82b51a16fbb7a072462af01d15b0b2c8d3
rust/tests/ui/error-codes/E0767.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
145 B
Rust
Raw Normal View History

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 15:16:38 +01: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 15:16:38 +01:00
loop { break 'a; } //~ ERROR E0767
}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1528ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API