1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![forbid(unsafe_code)] /// Placeholder function for the initial `knott` crate. pub fn hello() -> &'static str { "hello from knott" } #[cfg(test)] mod tests { use super::*; #[test] fn hello_works() { assert_eq!(hello(), "hello from knott"); } }