/src/test/compile-fail/issue-3044.rs
Rust | 9 lines | 5 code | 1 blank | 3 comment | 0 complexity | 1ca80ff3d3d0c7f7eefd0e9cc18ecbc1 MD5 | raw file
- // error-pattern: Non-function passed to a `do` function as its last argument, or wrong number of arguments passed to a `do` function
- fn main() {
- let needlesArr: ~[char] = ~['a', 'f'];
- do vec::foldr(needlesArr) |x, y| {
- }
- // for some reason if I use the new error syntax for the two error messages this generates,
- // the test runner gets confused -- tjc
- }