Skip to content

Commit 7d1a8f9

Browse files
committed
Add test of raw addr expression syntax
1 parent 6c52daa commit 7d1a8f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_ensure.rs

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ fn test_unary() {
184184

185185
let test = || Ok(ensure!(&mut x == *&&mut &2));
186186
assert_err(test, "Condition failed: `&mut x == *&&mut &2` (1 vs 2)");
187+
188+
let test = || Ok(ensure!(S + &raw const x != S + &raw mut x));
189+
assert_err(
190+
test,
191+
"Condition failed: `S + &raw const x != S + &raw mut x`", // FIXME
192+
);
187193
}
188194

189195
#[test]

0 commit comments

Comments
 (0)