mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2026-08-22 14:13:28 +08:00
Initial commit.
This commit is contained in:
8
never_type/Cargo.toml
Normal file
8
never_type/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "never_type"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
7
never_type/src/main.rs
Normal file
7
never_type/src/main.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
fn main() {
|
||||
print! ("永永 ");
|
||||
|
||||
loop {
|
||||
print! ("远远 ");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user