diff options
| author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-06 19:09:56 +0530 |
|---|---|---|
| committer | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-06-06 19:23:52 +0530 |
| commit | c2cb23807507b5c9e46f9a41fb3084993476deb7 (patch) | |
| tree | c8432c4da19e3a69cba2b7cdba3c698d0c3ad3d9 /src/rt/rust_task.cpp | |
| parent | 7ce700aa6528df24b39b65e2e8c3c6cd1758a02b (diff) | |
| download | rust-c2cb23807507b5c9e46f9a41fb3084993476deb7.tar.gz rust-c2cb23807507b5c9e46f9a41fb3084993476deb7.zip | |
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 <artagnon@gmail.com>
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
