Print the type of istrs as 'str' in error messages. Issue #855
This commit is contained in:
parent
b16457627c
commit
6217ce958e
4 changed files with 4 additions and 4 deletions
|
|
@ -1,3 +1,3 @@
|
|||
// error-pattern:^ cannot be applied to type `istr`
|
||||
// error-pattern:^ cannot be applied to type `str`
|
||||
|
||||
fn main() { let x = "a" ^ "b"; }
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
// error-pattern:expected istr but found [int]
|
||||
// error-pattern:expected str but found [int]
|
||||
fn main() { fail [0]; }
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
// error-pattern:applying unary minus to non-numeric type istr
|
||||
// error-pattern:applying unary minus to non-numeric type str
|
||||
|
||||
fn main() { -"foo"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue