Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / third_party / rust / uuid / examples / random_uuid.rs
blob897071c46861422a7719904132cd6f7356b056b1
1 //! Generating a random UUID.
2 //!
3 //! If you enable the `v4` feature you can generate random UUIDs.
5 #[test]
6 #[cfg(feature = "v4")]
7 fn generate_random_uuid() {
8     use uuid::Uuid;
10     let uuid = Uuid::new_v4();
12     assert_eq!(Some(uuid::Version::Random), uuid.get_version());
15 fn main() {}