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.()
.qiyuan711
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
apst
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
Samthewriter77
pub fn print_message() -> () { println!("Hello, Rust!");// TODO: Implement the function here}
jw
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
nickythorne
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
terminox
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
ryzen-xp
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello , Rust!");}
Derteq
pub fn print_message() -> () { println!("Hello, Rust!");}
chuyuanlinzi
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello Rust!");}
DV-13
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
tinthid
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
yoakemae
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
martin-unit
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
Neil-Rayu
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); return ();}
RonaldoArayadev
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
3ok
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
leenalmajz
pub fn print_message() -> () { println!("Hello, Rust!")}
Thymelizabeth
pub fn print_message() -> () { println!("Hello, Rust!");}
devarajang
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); return ();}
jeypiti
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
konishu
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
dalprahcd
pub fn print_message() -> () { println!("Hello, Rust!");}
nichideropa
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
aleksey-vareto
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
akshayabhattarai
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
oDqnger
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
otakumesi
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
matsuyama-k1
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
sy34
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
matsuby
pub fn print_message() -> () { println!("Hello, Rust!");}
ankeetparikh
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
ankeetparikh
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
0xsmarter
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
aidan1magee
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!");}
maxvi
pub fn print_message() -> () { println!("Hello, Rust!");}
hfm
pub fn print_message() -> () { println!("Hello, Rust!");}
P0TER19
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); return ()}
ugochukwudev
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
rafaellucasprogm
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
WalquerX
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
koslowskio
pub fn print_message() -> () { println!("Hello, Rust!"); return ()}
cloki0610
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
Brack0
pub fn print_message() -> () { println!("Hello, Rust!"); ()}
shinuza
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
tsucchinoko
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
whitwulf
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
risemacro
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!"); ()}
Kobeieii
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
2k0ri
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}
fudjet
pub fn print_message() -> () { // TODO: Implement the function here println!("Hello, Rust!")}