In Rust, the unit type ()
is a type that has exactly one value, also written as ()
. It is used to indicate the absence of a meaningful value and is often seen in functions that do not return a value.
In this challenge, you will implement a function that prints a message and returns the unit type.
You need to implement the function print_message() -> ()
that prints "Hello, Rust!"
to the console and returns the unit type.
print_message
function should print "Hello, Rust!"
to the console.()
.VenerisAsgard
pub fn print_message() -> () { println!("Hello, Rust!"); return ();}
hbdo
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
infamous-711
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
kriskwiatkowski
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
jhq223
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
francisco-cmyk
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello Rust")}
xbarnett
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
arukanoido
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
oTTeuMsTudio
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
Masber
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
carlos-quantexai
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello Rust!")}
mk-comm
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
nordicmachine
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
majesticalcreature
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
ad0x99
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
josschne
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
josschne
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
sander-b-postnl
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
matei
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
rot11
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); return ()}
hendrikdevloed
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
amassare
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
zavakid
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
victorchukwuemeka
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
Johnchoi913
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
Parallaxes
pub fn print_message() -> () { // TODO: Implement the function here println!("Hellom Rust!")}
MosesMp3
pub fn print_message() -> () { println!("Hello, Rust!"); return ();}
brum-b0
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
i5-650
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
retinotopic
pub fn print_message() -> () { println!("Hello, Rust!"); return ();}
hhornbacher
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
ogaca42
pub fn print_message() -> () { println!("Hello, Rust!")}
Ustin
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
pbjarterot
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
CianciuStyles
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
ayushrawat10
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
AsymetricData
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust"); ()}
otherJL0
pub fn print_message() -> () { println!("Hello, Rust!")}
l3vith
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
damascussteel21
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
agegorin
pub fn print_message() -> () { println!("Hello, Rust!");}
daanbouwman19
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
fuuman
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
Araden14
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, rust!")}
alexromanov
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
LaurentiuStoleriu
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
hanneskuettner
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
Timepatterns
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
shbhmrzd
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
dev-puzzler
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}