fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: invalid format string: field access isn't supported 2 --> $DIR/struct-field-as-captured-argument.rs:11:15 3 | 4LL | format!("{foo.field}"); 5 | ^^^^^^^^^ not supported in format string 6 | 7help: consider using a positional formatting argument instead 8 | 9LL | format!("{0}", foo.field); 10 | ~ +++++++++++ 11 12error: invalid format string: field access isn't supported 13 --> $DIR/struct-field-as-captured-argument.rs:12:15 14 | 15LL | format!("{foo.field} {} {bar}", "aa"); 16 | ^^^^^^^^^ not supported in format string 17 | 18help: consider using a positional formatting argument instead 19 | 20LL | format!("{1} {} {bar}", "aa", foo.field); 21 | ~ +++++++++++ 22 23error: invalid format string: field access isn't supported 24 --> $DIR/struct-field-as-captured-argument.rs:13:15 25 | 26LL | format!("{foo.field} {} {1} {bar}", "aa", "bb"); 27 | ^^^^^^^^^ not supported in format string 28 | 29help: consider using a positional formatting argument instead 30 | 31LL | format!("{2} {} {1} {bar}", "aa", "bb", foo.field); 32 | ~ +++++++++++ 33 34error: invalid format string: field access isn't supported 35 --> $DIR/struct-field-as-captured-argument.rs:14:15 36 | 37LL | format!("{foo.field} {} {baz}", "aa", baz = 3); 38 | ^^^^^^^^^ not supported in format string 39 | 40help: consider using a positional formatting argument instead 41 | 42LL | format!("{1} {} {baz}", "aa", foo.field, baz = 3); 43 | ~ +++++++++++ 44 45error: invalid format string: field access isn't supported 46 --> $DIR/struct-field-as-captured-argument.rs:15:15 47 | 48LL | format!("{foo.field:?} {} {baz}", "aa", baz = 3); 49 | ^^^^^^^^^ not supported in format string 50 | 51help: consider using a positional formatting argument instead 52 | 53LL | format!("{1:?} {} {baz}", "aa", foo.field, baz = 3); 54 | ~ +++++++++++ 55 56error: invalid format string: field access isn't supported 57 --> $DIR/struct-field-as-captured-argument.rs:16:15 58 | 59LL | format!("{foo.field:#?} {} {baz}", "aa", baz = 3); 60 | ^^^^^^^^^ not supported in format string 61 | 62help: consider using a positional formatting argument instead 63 | 64LL | format!("{1:#?} {} {baz}", "aa", foo.field, baz = 3); 65 | ~ +++++++++++ 66 67error: invalid format string: field access isn't supported 68 --> $DIR/struct-field-as-captured-argument.rs:17:15 69 | 70LL | format!("{foo.field:.3} {} {baz}", "aa", baz = 3); 71 | ^^^^^^^^^ not supported in format string 72 | 73help: consider using a positional formatting argument instead 74 | 75LL | format!("{1:.3} {} {baz}", "aa", foo.field, baz = 3); 76 | ~ +++++++++++ 77 78error: aborting due to 7 previous errors 79