diff options
Diffstat (limited to 'src/test/compile-fail/issue-7813.rs')
| -rw-r--r-- | src/test/compile-fail/issue-7813.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/compile-fail/issue-7813.rs b/src/test/compile-fail/issue-7813.rs index 2551ed0208a..a5f001b785c 100644 --- a/src/test/compile-fail/issue-7813.rs +++ b/src/test/compile-fail/issue-7813.rs @@ -9,7 +9,8 @@ // except according to those terms. fn main() { - let v = &[]; //~ NOTE consider giving `v` a type - let it = v.iter(); //~ ERROR type annotations needed - //~^ NOTE cannot infer type for `_` + let v = &[]; //~ ERROR type annotations needed + //~| NOTE consider giving `v` a type + //~| NOTE cannot infer type for `_` + let it = v.iter(); } |
