Skip to content

Commit

Permalink
dbg_macro: // ignore-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Sep 22, 2018
1 parent 924a693 commit b4d6d78
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs
@@ -1,4 +1,5 @@
// run-pass
// ignore-wasm

// Tests ensuring that `dbg!(expr)` has the expected run-time behavior.
// as well as some compile time properties we expect.
Expand Down Expand Up @@ -55,31 +56,31 @@ fn test() {

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

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

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

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

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

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

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

Expand Down

0 comments on commit b4d6d78

Please sign in to comment.