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
eb9d0e89d1
rust
/
src
/
test
/
compile-fail
/
block-must-not-have-result-while.rs
7 lines
110 B
Rust
Raw
Normal View
History
Unescape
Escape
Allow tail expressions even in no_value blocks. Type checker will guarantee they have unit type.
2011-12-29 14:03:39 -06:00
// error-pattern:mismatched types: expected `()` but found `bool`
Add tests for blocks that must not have results
2011-11-07 14:19:50 -06:00
fn
main
(
)
{
Add an infinite loop construct Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
2012-03-09 18:11:56 -06:00
loop
{
Add tests for blocks that must not have results
2011-11-07 14:19:50 -06:00
true
}
}
Reference in New Issue
Copy Permalink