Skip to content
Myr

Add test of raw addr expression syntax

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 6c52daa · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • tests:+6 added−0 removed

1 file+6 added−0 removed

modified:tests/test_ensure.rs+6 added
182 unmodified lines
183 assert_err(test, "Condition failed: `&x == &&2` (1 vs 2)");184185 let test = || Ok(ensure!(&mut x == *&&mut &2));186 assert_err(test, "Condition failed: `&mut x == *&&mut &2` (1 vs 2)");187188 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`", // FIXME192 );193}194195#[test]196fn test_if() {
551 unmodified lines