Skip to content

Commit

Permalink
Update test suite to nightly-2022-10-05
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 5, 2022
1 parent 7b171d6 commit 77c4fa4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_ensure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,13 @@ fn test_path() {
let test = || Ok(ensure!(PhantomData::<dyn Debug + Sync> != PhantomData));
assert_err(
test,
"Condition failed: `PhantomData::<dyn Debug + Sync> != PhantomData` (PhantomData vs PhantomData)",
"Condition failed: `PhantomData::<dyn Debug + Sync> != PhantomData`",
);

let test = || Ok(ensure!(PhantomData::<dyn Fn() + Sync> != PhantomData));
assert_err(
test,
"Condition failed: `PhantomData::<dyn Fn() + Sync> != PhantomData` (PhantomData vs PhantomData)",
"Condition failed: `PhantomData::<dyn Fn() + Sync> != PhantomData`",
);

#[rustfmt::skip]
Expand All @@ -376,7 +376,7 @@ fn test_path() {
};
assert_err(
test,
"Condition failed: `PhantomData::<dyn Fn() + ::std::marker::Sync> != PhantomData` (PhantomData vs PhantomData)",
"Condition failed: `PhantomData::<dyn Fn() + ::std::marker::Sync> != PhantomData`",
);
}

Expand Down Expand Up @@ -409,7 +409,7 @@ fn test_trailer() {
let test = || Ok(ensure!(PhantomData::<u8> {} != PhantomData));
assert_err(
test,
"Condition failed: `PhantomData::<u8> {} != PhantomData` (PhantomData vs PhantomData)",
"Condition failed: `PhantomData::<u8> {} != PhantomData` (PhantomData<u8> vs PhantomData<u8>)",
);

let result = Ok::<_, Error>(1);
Expand Down Expand Up @@ -597,7 +597,7 @@ fn test_as() {
};
assert_err(
test,
"Condition failed: `PhantomData as PhantomData<<i32 as ToOwned>::Owned> != PhantomData` (PhantomData vs PhantomData)",
"Condition failed: `PhantomData as PhantomData<<i32 as ToOwned>::Owned> != PhantomData` (PhantomData<i32> vs PhantomData<i32>)",
);

macro_rules! int {
Expand Down

0 comments on commit 77c4fa4

Please sign in to comment.