1
0

27 lines
349 B
Rust
Raw Permalink Normal View History

2019-06-15 15:31:01 -06:00
#![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");
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn teeeeest() {
e();
unreachable!("eeeeeeeeee?????");
}
}