We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a329d commit 5699376Copy full SHA for 5699376
tests/compile-fail/panic.rs
@@ -1,3 +1,5 @@
1
+// FIXME: Something in panic handling fails validation with full-MIR
2
+// compile-flags: -Zmir-emit-validate=0
3
//error-pattern: the evaluated program panicked
4
5
fn main() {
tests/compile-fail/zst2.rs
tests/compile-fail/zst3.rs renamed to tests/run-pass/zst2.rs
@@ -1,9 +1,8 @@
-// error-pattern: the evaluated program panicked
-
#[derive(Debug)]
struct A;
6
7
// can't use assert_eq, b/c that will try to print the pointer addresses with full MIR enabled
8
- assert!(&A as *const A == &A as *const A);
+ assert!(&A as *const A as *const () != &() as *const _);
+ assert!(&A as *const A != &A as *const A);
9
}
0 commit comments