]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / sugg_with_positional_args_and_debug_fmt.rs
CommitLineData
f2b60f7d
FG
1// When build the suggesttion take in consideration the `:?`
2// https://github.com/rust-lang/rust/issues/100648
3#![deny(warnings)]
4
5fn 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}