Adding i
suffixes so cfail tests keep failing after suffix inference
This commit is contained in:
parent
567e4d9c6f
commit
85977ced3f
@ -1,4 +1,4 @@
|
||||
// error-pattern:expected `str` but found `int`
|
||||
|
||||
const i: str = 10;
|
||||
const i: str = 10i;
|
||||
fn main() { log(debug, i); }
|
||||
|
@ -1,4 +1,4 @@
|
||||
fn f() -> ! {
|
||||
3 //! ERROR expected `_|_` but found `int`
|
||||
3i //! ERROR expected `_|_` but found `int`
|
||||
}
|
||||
fn main() { }
|
||||
|
@ -1,3 +1,3 @@
|
||||
// error-pattern:mismatched types
|
||||
|
||||
fn main() { let x = if true { 10 } else { 10u }; }
|
||||
fn main() { let x = if true { 10i } else { 10u }; }
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Regression test for issue #1362 - without that fix the span will be bogus
|
||||
// no-reformat
|
||||
fn main() {
|
||||
let x: uint = 20; //! ERROR mismatched types
|
||||
let x: uint = 20i; //! ERROR mismatched types
|
||||
}
|
||||
// NOTE: Do not add any extra lines as the line number the error is
|
||||
// on is significant; an error later in the source file might not
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Regresion test for issue #1448 and #1386
|
||||
|
||||
fn main() {
|
||||
#debug["%u", 10]; //! ERROR mismatched types
|
||||
#debug["%u", 10i]; //! ERROR mismatched types
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
fn g() -> ! { fail; }
|
||||
fn f() -> ! {
|
||||
ret 42; //! ERROR expected `_|_` but found `int`
|
||||
ret 42i; //! ERROR expected `_|_` but found `int`
|
||||
g(); //! WARNING unreachable statement
|
||||
}
|
||||
fn main() { }
|
||||
|
@ -4,7 +4,7 @@ fn forever() -> ! {
|
||||
loop {
|
||||
break;
|
||||
}
|
||||
ret 42; //! ERROR expected `_|_` but found `int`
|
||||
ret 42i; //! ERROR expected `_|_` but found `int`
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
fn main() {
|
||||
|
||||
let a = {foo: 0};
|
||||
let a = {foo: 0i};
|
||||
|
||||
let b = {foo: true with a};
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ fn nested(x: &x.int) { // (1)
|
||||
let b: &x.int = foo(x, a) { |_x, _y, z| z };
|
||||
let c: &x.int = foo(a, a) { |_x, _y, z| z };
|
||||
|
||||
let z = 3;
|
||||
let z = 3i;
|
||||
let d: &x.int = foo(x, x) { |_x, _y, z| z };
|
||||
let e: &x.int = foo(x, &z) { |_x, _y, z| z };
|
||||
let f: &x.int = foo(&z, &z) { |_x, _y, z| z }; //! ERROR mismatched types: expected `&x.int` but found
|
||||
|
@ -2,4 +2,4 @@
|
||||
// error-pattern:mismatched types: expected `bool`
|
||||
// error-pattern:mismatched types: expected `int`
|
||||
|
||||
fn main() { let a: bool = 1; let b: int = true; }
|
||||
fn main() { let a: bool = 1i; let b: int = true; }
|
||||
|
@ -2,7 +2,7 @@
|
||||
// issue #367
|
||||
|
||||
fn f() {
|
||||
let v = [1];
|
||||
let v = [1i];
|
||||
log(debug, v.some_field_name); //type error
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user