mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
215 B
13 lines
215 B
3 years ago
|
fn main() {
|
||
|
// ANCHOR: there
|
||
|
// ANCHOR: here
|
||
|
type Kilometers = i32;
|
||
|
// ANCHOR_END: here
|
||
|
|
||
|
let x: i32 = 5;
|
||
|
let y: Kilometers = 5;
|
||
|
|
||
|
println!("x + y = {}", x + y);
|
||
|
// ANCHOR_END: there
|
||
|
}
|