100-exercises-to-learn-rust/exercises/08_futures/00_intro/src/lib.rs

15 lines
235 B
Rust

fn intro() -> &'static str {
// TODO: fix me 👇
"I'm ready to _!"
}
#[cfg(test)]
mod tests {
use crate::intro;
#[test]
fn test_intro() {
assert_eq!(intro(), "I'm ready to learn about futures!");
}
}