You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
386 B

use check_user_name::*;
fn main() {
let user0 = User::new("Didier".to_string(), AccessLevel::Admin);
println!("{:?}", check_user_name(&user0));
let user1 = User::new("Mary".to_string(), AccessLevel::Normal);
println!("{:?}", check_user_name(&user1));
let user2 = User::new("John".to_string(), AccessLevel::Guest);
println!("{:?}", check_user_name(&user2));
}