Skip to content

Commit 90f7997

Browse files
committed
Add regression test
1 parent fa3e3cb commit 90f7997

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/ui/issue-3145.rs

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

tests/ui/issue-3145.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected token: `,`
2+
--> $DIR/issue-3145.rs:2:19
3+
|
4+
2 | println!("{}" a); //~ERROR expected token: `,`
5+
| ^
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)