Debian Codegraph @

third_party/rust/uuid/tests/ui/compile_pass/valid.rs

raw
1 use uuid::{uuid, Uuid};
2
3 const _: Uuid = uuid!("00000000000000000000000000000000");
4 const _: Uuid = uuid!("67e55044-10b1-426f-9247-bb680e5fe0c8");
5 const _: Uuid = uuid!("67e55044-10b1-426f-9247-bb680e5fe0c8");
6 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4");
7 const _: Uuid = uuid!("67e5504410b1426f9247bb680e5fe0c8");
8 const _: Uuid = uuid!("01020304-1112-2122-3132-414243444546");
9 const _: Uuid = uuid!("urn:uuid:67e55044-10b1-426f-9247-bb680e5fe0c8");
10
11 // Nil
12 const _: Uuid = uuid!("00000000000000000000000000000000");
13 const _: Uuid = uuid!("00000000-0000-0000-0000-000000000000");
14
15 // valid hyphenated
16 const _: Uuid = uuid!("67e55044-10b1-426f-9247-bb680e5fe0c8");
17 // valid short
18 const _: Uuid = uuid!("67e5504410b1426f9247bb680e5fe0c8");
19
20 fn main() {}