Skip to content

Commit 0b7625a

Browse files
committed
make sure compile-fail tests would compile if we screw up
1 parent 6181b29 commit 0b7625a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compile-fail-fullmir/stacked_borrows/box_exclusive_violation1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ fn unknown_code_2() { unsafe {
2525
} }
2626

2727
fn main() {
28-
assert_eq!(demo_mut_advanced_unique(Box::new(0)), 5);
28+
demo_mut_advanced_unique(Box::new(0));
2929
}

tests/compile-fail-fullmir/stacked_borrows/mut_exclusive_violation1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ fn unknown_code_2() { unsafe {
2525
} }
2626

2727
fn main() {
28-
assert_eq!(demo_mut_advanced_unique(&mut 0), 5);
28+
demo_mut_advanced_unique(&mut 0);
2929
}

0 commit comments

Comments
 (0)