100 exercises to learn Rust

This commit is contained in:
LukeMathWalker committed 2024-05-12 22:47:45 +02:00
commit 5edebf6cf2
309 files changed
+13173

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
[package]
name = "intro_03"
version = "0.1.0"
edition = "2021"
+14
View File
@@ -0,0 +1,14 @@
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 traits!");
}
}