fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: format argument must be a string literal 2 --> $DIR/suggest-inline-args.rs:13:15 3 | 4LL | eprintln!({stderr}); 5 | ^^^^^^^^ 6 | 7help: quote your inlined format argument to use as string literal 8 | 9LL | eprintln!("{stderr}"); 10 | + + 11 12error: format argument must be a string literal 13 --> $DIR/suggest-inline-args.rs:16:15 14 | 15LL | eprintln!({1}); 16 | ^^^ 17 | 18help: you might be missing a string literal to format with 19 | 20LL | eprintln!("{}", {1}); 21 | +++++ 22 23error: format argument must be a string literal 24 --> $DIR/suggest-inline-args.rs:19:15 25 | 26LL | eprintln!({foo::bar()}); 27 | ^^^^^^^^^^^^ 28 | 29help: you might be missing a string literal to format with 30 | 31LL | eprintln!("{}", {foo::bar()}); 32 | +++++ 33 34error: format argument must be a string literal 35 --> $DIR/suggest-inline-args.rs:22:15 36 | 37LL | eprintln!({bar()}); 38 | ^^^^^^^ 39 | 40help: you might be missing a string literal to format with 41 | 42LL | eprintln!("{}", {bar()}); 43 | +++++ 44 45error: format argument must be a string literal 46 --> $DIR/suggest-inline-args.rs:25:15 47 | 48LL | eprintln!({1; 2}); 49 | ^^^^^^ 50 | 51help: you might be missing a string literal to format with 52 | 53LL | eprintln!("{}", {1; 2}); 54 | +++++ 55 56error: aborting due to 5 previous errors 57