Skip to content

Commit fa19788

Browse files
committed
Add a test for #2791
Closes #2791.
1 parent e5e1e0c commit fa19788

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/source/assignment.rs

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ fn main() {
1313
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD;
1414

1515
single_line_fit = 5;single_lit_fit >>= 10;
16+
17+
18+
// #2791
19+
let x = 2;;;;
1620
}
1721

1822
fn break_meee() {

tests/target/assignment.rs

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ fn main() {
1515

1616
single_line_fit = 5;
1717
single_lit_fit >>= 10;
18+
19+
// #2791
20+
let x = 2;;;;
1821
}
1922

2023
fn break_meee() {

0 commit comments

Comments
 (0)