Rust hello world !

特点: 安全,速度,并发

文件:hello_world.rs

代码:

1 fn main() {
2     println!("hello world!");
3 }

执行:rustc hello_world.rs

执行:./hello_world

结果:屏幕上就出现字符串:hello world

原文地址:https://www.cnblogs.com/yuwensong/p/6719299.html