mirror of
https://github.com/Noratrieb/accursed-unutterable-type-id.git
synced 2026-01-15 00:45:11 +01:00
why
This commit is contained in:
parent
d20fc815da
commit
dd85598b5c
3 changed files with 44 additions and 0 deletions
14
examples/one.rs
Normal file
14
examples/one.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use accursed_unutterable_type_id::{AccursedUnutterableTypeId, AccursedUnutterablyTypeIdentified};
|
||||
|
||||
#[derive(AccursedUnutterablyTypeIdentified)]
|
||||
struct Uwu;
|
||||
|
||||
#[derive(AccursedUnutterablyTypeIdentified)]
|
||||
struct Owo;
|
||||
|
||||
fn main() {
|
||||
let uwu_id = AccursedUnutterableTypeId::of::<Uwu>();
|
||||
let owo_id = AccursedUnutterableTypeId::of::<Owo>();
|
||||
|
||||
assert_ne!(uwu_id, owo_id);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue