about summary refs log tree commit diff
path: root/src/test/compile-fail/break-outside-loop.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-35/+0
2015-01-05fix cfail testsJorge Aparicio-1/+1
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-1/+1
2014-04-05rustc: move the check_loop pass earlier.Huon Wilson-0/+2
This pass is purely AST based, and by running it earlier we emit more useful error messages, e.g. type inference fails in the case of `let r = break;` with few constraints on `r`, but its more useful to be told that the `break` is outside a loop (rather than a type error) when it is. Closes #13292.
2013-11-26test: Remove non-procedure uses of `do` from compiletest, libstd tests,Patrick Walton-2/+2
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-12Improve error message for breaks in blocksAlex Crichton-4/+15
Before it was always stated that it was a "break outside of a loop" when you could very well be in a loop, but just in a block instead. Closes #3064
2013-03-02Remove REC, change related tests/docsJihyun Yu-1/+6
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-07-14Tear out ty_str and ty_vec.Michael Sullivan-1/+1
2012-03-26Disallow ret inside of block functionsMarijn Haverbeke-1/+1
Also adds proper checking for cont/break being inside a loop. Closes #1854 Issue #1619
2012-02-16More rigorous reuse of cleanup sequencesMarijn Haverbeke-1/+1
In both landing pads and break/cont/ret unwinding. Closes #300
2011-08-20ReformatBrian Anderson-1/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-03Remove all xfail-stage0 directivesBrian Anderson-1/+0
While it is still technically possible to test stage 0, it is not part of any of the main testing rules and maintaining xfail-stage0 is a chore. Nobody should worry about how tests fare in stage0.
2011-07-27Reformat for new syntaxMarijn Haverbeke-2/+2
2011-06-25Remove variable name 'res' from test suiteMarijn Haverbeke-1/+1
2011-06-14Add xfail-stage0 to some tests (not sure if it matters...)Tim Chevalier-0/+1
2011-06-10Friendlier error message for break outside a loopTim Chevalier-0/+7
The typechecker should really check for this, but at least now there's an error message rather than an inexhaustive match failure in trans.