This is the source code of the traditional Hello World program.

        
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

println! is a macro that prints text to the console.

A binary can be generated using the Rust compiler: rustc.

       
$ rustc hello.rs

rustc will produce a hello binary that can be executed.

       
$ ./hello Hello World!

Activity

Click 'Run' above to see the expected output. Next, add a new line with a second println! macro so that the output shows:

       
Hello World! I'm a Rustacean!
Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x Night Solar Waterproof Desk Lights Glass for A01 Power Mosaic Changing Lamp Crystal Table Light Solar Decoration Yard TechCode Lantern Light Garden Colour Beside Lawn Table Patio Outdo Pool Party 6EXTqd0x