From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
|actions= | |actions= | ||
# Open a text editor and type in a basic program (one is given for you to execute) | # Open a text editor and type in a basic program (one is given for you to execute) | ||
<pre> | |||
main() | |||
{ | { | ||
println!("Hello, Rust is running on Fedora now!"); | println!("Hello, Rust is running on Fedora now!"); | ||
} | } | ||
<pre> | |||
# Save this in a file with name convention <filename>.rs | # Save this in a file with name convention <filename>.rs | ||
# Open terminal/konsole | # Open terminal/konsole |
Revision as of 09:05, 1 February 2017
Description
This test case tests whether you complies the programs correctly.
Setup
- Ensure the
rust
package is installed
How to test
- Open a text editor and type in a basic program (one is given for you to execute)
main() { println!("Hello, Rust is running on Fedora now!"); }# Save this in a file with name convention <filename>.rs # Open terminal/konsole # Compile the file by executingrustc <filename>.rs
# Execute./<filename>
Expected Results
# Hello, Rust is running on Fedora now! - will be displayed