Skip to main content

borrow_visualizer/
lib.rs

1pub fn info<'a>() -> &'a str {
2    "This is a tool for visualizing borrows in Rust. Developed by Achmed Hibatillah."
3}
4
5#[cfg(test)]
6mod tests {
7    use super::*;
8
9    #[test]
10    fn test_info() {
11        let info: &str = info();
12        println!("{}", info);
13    }
14}