about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2023-10-26 17:40:15 -0400
committerGitHub <noreply@github.com>2023-10-26 17:40:15 -0400
commite4fe941b11a55c5005630696e9b6d81c65f7bd04 (patch)
treed7ac6feddb60812de0342741004add8d441531d0 /example/std_example.rs
parent8329a356fc1d3e484019c876e1344aa7a0a2b5dd (diff)
parenta6984f5961c6a211b64797ff0db595228d00abf5 (diff)
downloadrust-e4fe941b11a55c5005630696e9b6d81c65f7bd04.tar.gz
rust-e4fe941b11a55c5005630696e9b6d81c65f7bd04.zip
Merge pull request #371 from rust-lang/sync_from_rust_2023_10_25
Sync from rust 2023/10/25
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 2d57866c1d1..0f6325c8980 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -1,10 +1,10 @@
-#![feature(core_intrinsics, generators, generator_trait, is_sorted)]
+#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted)]
 
 #[cfg(feature="master")]
 #[cfg(target_arch="x86_64")]
 use std::arch::x86_64::*;
 use std::io::Write;
-use std::ops::Generator;
+use std::ops::Coroutine;
 
 extern {
     pub fn printf(format: *const i8, ...) -> i32;