Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove should_panic test
  • Loading branch information
ascjones committed Jul 16, 2021
commit adaca9c52666a0236de5b89bda7246358c8dc916
9 changes: 7 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ fn prelude_items() {
}

#[test]
#[should_panic]
fn phantom_data() {
PhantomData::<i32>::type_info();
assert_type!(
PhantomData<i32>,
Type::builder()
.path(Path::prelude("PhantomData"))
.docs(&["PhantomData placeholder, this type should be filtered out"])
.composite(Fields::unit())
)
}

#[test]
Expand Down