Skip to content

Commit

Permalink
Make regression test actually fail
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Sep 7, 2022
1 parent ddb071e commit 855540b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/test/ui/const-mut-refs-crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,5 @@ pub fn main() {
assert_eq!(LOCAL_FOO as *const i32, LOCAL_BAR as *const i32);
assert_eq!(*DOUBLE_REF as *const i32, ONE_STEP_ABOVE as *const i32);

// assert_eq!(FOO as *const i32, LOCAL_BAZ as *const i32);
// above fails
// ---- [ui] src/test/ui/const-mut-refs-crate.rs stdout ----
//
// error: test run failed!
// status: exit status: 101
// command: "..rust/build/x86_64-unknown-linux-gnu/test/ui/const-mut-refs-crate/a"
// stdout: none
// --- stderr -------------------------------
// thread 'main' panicked at 'assertion failed: `(left == right)`
// left: `0x7f3f52fe5000`,
// right: `0x55f4daa4b000`', ..rust/src/test/ui/const-mut-refs-crate.rs:20:5
// note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
// ------------------------------------------
assert_eq!(FOO as *const i32, LOCAL_BAZ as *const i32);
}

0 comments on commit 855540b

Please sign in to comment.