Add regression test

This commit is contained in:
flip1995 2018-09-07 17:18:47 +02:00
parent fa3e3cb6ea
commit 90f7997771
No known key found for this signature in database
GPG Key ID: 9F184E1164831181
2 changed files with 11 additions and 0 deletions

3
tests/ui/issue-3145.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("{}" a); //~ERROR expected token: `,`
}

View File

@ -0,0 +1,8 @@
error: expected token: `,`
--> $DIR/issue-3145.rs:2:19
|
2 | println!("{}" a); //~ERROR expected token: `,`
| ^
error: aborting due to previous error