about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/source/immovable_generators.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/immovable_generators.rs')
-rw-r--r--src/tools/rustfmt/tests/source/immovable_generators.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/immovable_generators.rs b/src/tools/rustfmt/tests/source/immovable_generators.rs
new file mode 100644
index 00000000000..c57a1e14483
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/immovable_generators.rs
@@ -0,0 +1,7 @@
+#![feature(generators)]
+
+unsafe fn foo() {
+    let mut ga = static || { 
+        yield 1;
+    };
+}