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
e4c141a331f72f55daabd0e77a74584683350f2b
rust/src/test/compile-fail/break-outside-loop.rs

8 lines
108 B
Rust
Raw Normal View History

More rigorous reuse of cleanup sequences In both landing pads and break/cont/ret unwinding. Closes #300
2012-02-15 13:57:29 +01:00
// error-pattern:break outside a loop
Friendlier error message for break outside a loop The typechecker should really check for this, but at least now there's an error message rather than an inexhaustive match failure in trans.
2011-06-10 14:34:01 -07:00
fn main() {
Reformat for new syntax
2011-07-27 14:19:39 +02:00
let pth = break;
Friendlier error message for break outside a loop The typechecker should really check for this, but at least now there's an error message rather than an inexhaustive match failure in trans.
2011-06-10 14:34:01 -07:00
Reformat for new syntax
2011-07-27 14:19:39 +02:00
let rs: {t: str} = {t: pth};
Friendlier error message for break outside a loop The typechecker should really check for this, but at least now there's an error message rather than an inexhaustive match failure in trans.
2011-06-10 14:34:01 -07:00
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 560ms Template: 3ms
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