Link Search Menu Expand Document

Solution:


fn test() {
    print!("I am learning Rust programming language");
}


Explanation

  • On line 2, the statement “I am learning Rust programming language” is placed within the parentheses of the print! macro.

  • The output “I am learning Rust programming language” gets printed on the console.

Up next is another coding challenge for you.