]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/if/ifmt-unknown-trait.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / if / ifmt-unknown-trait.stderr
index 9ea367c81ec0a8f5ed0f753a1afb23727d36f12e..7853b5ca0c9a6c642bf27d11bdad689e07399c5a 100644 (file)
@@ -3,6 +3,17 @@ error: unknown format trait `notimplemented`
    |
 LL |     format!("{:notimplemented}", "3");
    |                                  ^^^
+   |
+   = note: the only appropriate formatting traits are:
+           - ``, which uses the `Display` trait
+           - `?`, which uses the `Debug` trait
+           - `e`, which uses the `LowerExp` trait
+           - `E`, which uses the `UpperExp` trait
+           - `o`, which uses the `Octal` trait
+           - `p`, which uses the `Pointer` trait
+           - `b`, which uses the `Binary` trait
+           - `x`, which uses the `LowerHex` trait
+           - `X`, which uses the `UpperHex` trait
 
 error: aborting due to previous error