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
/
compile-fail
/
block-must-not-have-result-for.rs
7 lines
118 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 12:03:39 -08:00
// error-pattern:mismatched types: expected `()` but found `bool`
Add tests for blocks that must not have results
2011-11-07 12:19:50 -08:00
fn
main
(
)
{
for
i
in
[
0
]
{
true
}
}
Reference in New Issue
Copy Permalink