]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / 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 }