Hello world

간단하게 출력 그리고 포맷팅 출력에 대해 알아보자.

먼저 main.rs 파일을 만들어 직접 컴파일해서 출력하는 방법을 알아보자.


$vi main.rs 


fn main() {
	
	println!("Hello World!");

}

rustc 로 컴파일하기.


$rustc hello.rs 
./hello