about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authordvdsk <noreply@davidsk.dev>2023-07-16 23:35:38 +0200
committerdvdsk <noreply@davidsk.dev>2023-07-16 23:35:38 +0200
commit4cf66f0b09c6bd917401ef69aea2b287dca49a53 (patch)
tree06aaca0b383813cb10bfbb6cfafe545b486c0276 /library/std/src
parentbd70b639fde23f599858d81b0ffa8076d2c518bd (diff)
downloadrust-4cf66f0b09c6bd917401ef69aea2b287dca49a53.tar.gz
rust-4cf66f0b09c6bd917401ef69aea2b287dca49a53.zip
adds crate attribute to examples so they compile
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 9eb3193fd9f..7b26068c294 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -890,6 +890,7 @@ pub fn sleep(dur: Duration) {
 /// A simple game loop that limits the game to 60 frames per second.
 ///
 /// ```no_run
+/// #![feature(thread_sleep_until)]
 /// # use std::time::{Duration, Instant};
 /// # use std::thread;
 /// #
@@ -912,6 +913,7 @@ pub fn sleep(dur: Duration) {
 /// api call takes does not influence when we retry or when we give up
 ///
 /// ```no_run
+/// #![feature(thread_sleep_until)]
 /// # use std::time::{Duration, Instant};
 /// # use std::thread;
 /// #