| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2013-06-06 | test/compile-fail: clarify bad-for-loop | Ramkumar Ramachandra | -0/+15 | |
| 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 <artagnon@gmail.com> | ||||
