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
12c32e944d
rust
/
src
/
test
/
compile-fail
/
block-must-not-have-result-while.rs
7 lines
116 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
(
)
{
Tweak some test cases and add a few new ones
2012-03-10 22:38:03 -06:00
while
true
{
Add tests for blocks that must not have results
2011-11-07 14:19:50 -06:00
true
}
}
Reference in New Issue
Copy Permalink