2018-10-22 18:21:55 +02:00
|
|
|
// Test that we do some basic error correction in the tokeniser (and don't ICE).
|
2016-03-23 09:24:54 +13:00
|
|
|
|
|
|
|
fn main() {
|
2016-12-01 01:35:25 +03:00
|
|
|
if foo {
|
2017-12-10 23:29:24 +03:00
|
|
|
//~^ ERROR: cannot find value `foo`
|
2016-03-23 09:24:54 +13:00
|
|
|
) //~ ERROR: incorrect close delimiter: `)`
|
|
|
|
}
|