Skip to content

Commit

Permalink
Add a test for #2791
Browse files Browse the repository at this point in the history
Closes #2791.
  • Loading branch information
topecongiro committed Jun 25, 2018
1 parent e5e1e0c commit fa19788
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/source/assignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ fn main() {
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD;

single_line_fit = 5;single_lit_fit >>= 10;


// #2791
let x = 2;;;;
}

fn break_meee() {
Expand Down
3 changes: 3 additions & 0 deletions tests/target/assignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ fn main() {

single_line_fit = 5;
single_lit_fit >>= 10;

// #2791
let x = 2;;;;
}

fn break_meee() {
Expand Down

0 comments on commit fa19788

Please sign in to comment.