我在rust中输入了我的第一个代码。 helloworld。但是尝试运行时出现错误。
fn main() {
println!("Hello world");
}
我尝试使用'./hellworld.rs'运行但它显示,
syntax error near unexpected token `('
`fn main() {'
我正在使用Powershell。但是使用了错误的命令./helloworld.rs
相反,我尝试了./helloworld
和./helloworld.exe
。都有效。