Skip to content
Myr

Merge pull request #217 from dtolnay/ensuretest

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

Update ensure tests to nightly-2022-01-04

authored by David Tolnay · committed by GitHub · parents 6b9978c, dc087bc · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_ensure.rs+1 added-1 removed
655 unmodified lines
656 let p = PhantomData::<u8>;657 let test = || Ok(ensure!(if let P::<u8> {} = p { 0 } else { 1 } == 1));658 assert_err(659 test,660 "Condition failed: `if let P::<u8> { } = p { 0 } else { 1 } == 1` (0 vs 1)", // FIXME660 "Condition failed: `if let P::<u8> {} = p { 0 } else { 1 } == 1` (0 vs 1)",661 );662663 let test = || Ok(ensure!(if let ::std::marker::PhantomData = p {} != ()));664 assert_err(
22 unmodified lines