commit: b10e92ba167176505f60823b77cd1843b45a71f1
parent 72fabdef43574dbee7080e6a4733ca3bb2baed9e
Author: iliana weller <ilianaw@buttslol.net>
Date: Mon, 10 Dec 2018 08:28:18 -0800
Eeeee EE #351 eeee iosmanthus/eeeeeeeeeeeeeeeeeeeeeeee
Add another implementation to e.rs
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/e.rs b/e.rs
@@ -1,6 +1,13 @@
#![feature(main)]
+#[cfg(feature = "functional")]
#[main]
fn e() {
+ std::iter::repeat('e').for_each(|e| print!("{}", e));
+}
+
+#[cfg(not(feature = "functional"))]
+#[main]
+fn e() -> ! {
loop {
print!("e");
}