]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parse-error-correct.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / parse-error-correct.rs
CommitLineData
7453a54e
SL
1// Test that the parser is error correcting missing idents. Despite a parsing
2// error (or two), we still run type checking (and don't get extra errors there).
b039eaaf
SL
3
4fn main() {
7453a54e
SL
5 let y = 42;
6 let x = y.; //~ ERROR unexpected token
7 let x = y.(); //~ ERROR unexpected token
3b2f2976 8 //~^ ERROR expected function, found `{integer}`
041b39d2 9 let x = y.foo; //~ ERROR `{integer}` is a primitive type and therefore doesn't have fields [E061
b039eaaf 10}