]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-98466-allow.rs
Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726
[rust.git] / tests / ui / macros / issue-98466-allow.rs
1 // check-pass
2 #![allow(named_arguments_used_positionally)]
3
4 fn main() {
5     let mut _x: usize;
6     _x = 1;
7     println!("_x is {}", _x = 5);
8     println!("_x is {}", y = _x);
9     println!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
10
11     let mut _x: usize;
12     _x = 1;
13     let _f = format!("_x is {}", _x = 5);
14     let _f = format!("_x is {}", y = _x);
15     let _f = format!("first positional arg {}, second positional arg {}, _x is {}", 1, 2, y = _x);
16 }