You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
349 B
Rust
27 lines
349 B
Rust
#![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?????");
|
|
}
|
|
}
|
|
|