]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / sugg_with_positional_args_and_debug_fmt.rs
1 // When build the suggesttion take in consideration the `:?`
2 // https://github.com/rust-lang/rust/issues/100648
3 #![deny(warnings)]
4
5 fn main () {
6     println!("hello {:?}", world = "world");
7     //~^ ERROR named argument `world` is not used by name
8     //~| HELP use the named argument by name to avoid ambiguity
9     //~| SUGGESTION world
10 }