diff --git a/examples/sortable_uuid.rs b/examples/sortable_uuid.rs index fd4b56f3..0f8c21da 100644 --- a/examples/sortable_uuid.rs +++ b/examples/sortable_uuid.rs @@ -2,7 +2,7 @@ //! //! If you enable the `v7` feature you can generate sortable UUIDs. -#[cfg(feature = "v7")] +#[cfg(all(uuid_unstable, feature = "v7"))] fn main() { use uuid::Uuid; @@ -13,5 +13,5 @@ fn main() { println!("{}", uuid); } -#[cfg(not(feature = "v7"))] +#[cfg(not(all(uuid_unstable, feature = "v7")))] fn main() {}