Skip to content

Commit 1032063

Browse files
kevinabrson
authored andcommitted
Add regression test for issue #1362.
Although its not really needed. Without that fix, reported spans will likely be bogus if the error is within the first couple of lines (probable around 5) of that file. Thus, many of the compile-fail tests will fail due to incorrect location.
1 parent 19d5ad7 commit 1032063

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/compile-fail/issue-1362.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Regression test for issue #1362
2+
// (without out that fix the location will be bogus)
3+
fn main() {
4+
let x: uint = 20; //! ERROR mismatched types
5+
}
6+
// NOTE: Do not add any extra lines as the line number the error is
7+
// on is significant; an error later in the source file might not
8+
// trigger the bug.

0 commit comments

Comments
 (0)