Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/compile-fail: clarify bad-for-loop
There are two distinct kinds of bad-for-loops to check for with two distinct error messages. The current bad-for-loop.rs does not make this clear, so rewrite it into bad-for-loop{,-2}.rs. The two failing prototypes are: fn quux(_: &fn(&int) -> int) -> bool { true } fn quux(_: &fn(&int) -> bool) -> () { } Note that the second one runs fine in rust-0.6 (the latest release), and only fails with a rust built from `incoming`. Signed-off-by: Ramkumar Ramachandra <[email protected]>
- Loading branch information