summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs
blob: 21ab6830b3c81cd3c4f31c993b13d74fae0aec7b (plain)
1
2
3
4
5
6
7
8
9
10
// When build the suggesttion take in consideration the `:?`
// https://github.com/rust-lang/rust/issues/100648
#![deny(warnings)]

fn main () {
    println!("hello {:?}", world = "world");
    //~^ ERROR named argument `world` is not used by name
    //~| HELP use the named argument by name to avoid ambiguity
    //~| SUGGESTION world
}