Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
10
tests/ui/parser/parse-error-correct.rs
Normal file
10
tests/ui/parser/parse-error-correct.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Test that the parser is error correcting missing idents. Despite a parsing
|
||||
// error (or two), we still run type checking (and don't get extra errors there).
|
||||
|
||||
fn main() {
|
||||
let y = 42;
|
||||
let x = y.; //~ ERROR unexpected token
|
||||
let x = y.(); //~ ERROR unexpected token
|
||||
//~^ ERROR expected function, found `{integer}`
|
||||
let x = y.foo; //~ ERROR `{integer}` is a primitive type and therefore doesn't have fields [E061
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue