lib.rs

220 B · rust · 12 lines

1/// The one function of the placeholder release.2pub fn hello() -> &'static str {3    "Hello, World!"4}56#[cfg(test)]7mod tests {8    #[test]9    fn hello() {10        assert_eq!(super::hello(), "Hello, World!");11    }12}