blob: e07f47cff5a6f63f8700548a07ddeee50edf8f37 [file] [log] [blame] [edit]
error: invalid format string: python's f-string debug `=` is not supported in rust, use `dbg(x)` instead
--> $DIR/format-string-error-3.rs:4:16
|
LL | println!("{=}", x);
| -^ expected `}` in format string
| |
| because of this opening brace
|
= note: to print `{`, you can escape it using `{{`
help: use rust debug printing macro
|
LL - println!("{=}", x);
LL + dbg!(x);
|
error: aborting due to 1 previous error