]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/if/ifmt-bad-arg.stderr
Point at formatting descriptor string when it is invalid
[rust.git] / src / test / ui / if / ifmt-bad-arg.stderr
index c58cbc312335a6588553ec4967cd721672eb074d..7a76f0e7c47890186049f66437615594eeaf37df 100644 (file)
@@ -257,10 +257,10 @@ LL |     println!("{} {:07$} {}", 1, 3.2, 4);
    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
 
 error: unknown format trait `foo`
-  --> $DIR/ifmt-bad-arg.rs:86:24
+  --> $DIR/ifmt-bad-arg.rs:86:17
    |
 LL |     println!("{:foo}", 1);
-   |                        ^
+   |                 ^^^
    |
    = note: the only appropriate formatting traits are:
            - ``, which uses the `Display` trait