mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
17 lines
488 B
Rust
17 lines
488 B
Rust
//@ check-pass
|
|
#![allow(named_arguments_used_positionally)]
|
|
|
|
fn main() {
|
|
let mut _x: usize;
|
|
_x = 1;
|
|
println!("_x is {}", _x = 5);
|
|
println!("_x is {}", y = _x);
|
|
println!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
|
|
|
|
let mut _x: usize;
|
|
_x = 1;
|
|
let _f = format!("_x is {}", _x = 5);
|
|
let _f = format!("_x is {}", y = _x);
|
|
let _f = format!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
|
|
}
|