From Fedora Project Wiki

m (fix code (missing "fn" keyword before "main" function))
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests whether you complies the programs correctly.
|description=This test case tests whether it compiles a program correctly.
|setup=
|setup=
# Ensure the {{package|rust}} package is installed
# Ensure the {{package|rust}} package is installed

Latest revision as of 17:08, 21 July 2020

Description

This test case tests whether it compiles a program correctly.

Setup

  1. Ensure the rust package is installed

How to test

  1. Open a text editor and type in a basic program (one is given for you to execute)
fn main() 
{
    println!("Hello, Rust is running on Fedora now!");
}
  1. Save this in a file with name convention <filename>.rs
  2. Open terminal/konsole
  3. Compile the file by executing rustc <filename>.rs
  4. Execute ./<filename>

Expected Results

  1. Hello, Rust is running on Fedora now! - will be displayed