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
rust
/
src
/
test
/
run-fail
/
for-each-loop-fail.rs
5 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Handle fail inside a for-each loop properly
2011-07-05 15:59:04 -07:00
// error-pattern:moop
use
std
;
Copy first batch of material from libstd to libcore.
2011-12-13 16:25:51 -08:00
import
uint
;
Remove remaining uses of iter and for-each Issue #1056
2011-10-21 13:14:28 +02:00
fn
main
(
)
{
uint
::
range
(
0
u
,
10
u
)
{
|
_i
|
fail
"
moop
"
;
}
}
Reference in New Issue
Copy Permalink