Skip to content

Commit

Permalink
dbg_macro: fix line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Sep 23, 2018
1 parent 5184dcc commit e5b9331
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,31 @@ fn test() {

fn validate_stderr(stderr: Vec<String>) {
assert_eq!(stderr, &[
":22] Unit = Unit",
":23] Unit = Unit",

":23] a = Unit",
":24] a = Unit",

":29] Point{x: 42, y: 24,} = Point {",
":30] Point{x: 42, y: 24,} = Point {",
" x: 42,",
" y: 24",
"}",

":30] b = Point {",
":31] b = Point {",
" x: 42,",
" y: 24",
"}",

":39] &a = NoCopy(",
":40] &a = NoCopy(",
" 1337",
")",

":39] dbg!(& a) = NoCopy(",
":40] dbg!(& a) = NoCopy(",
" 1337",
")",
":44] f(&42) = 42",
":45] f(&42) = 42",

"before",
":49] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
":50] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
]);
}

Expand Down

0 comments on commit e5b9331

Please sign in to comment.