2018-08-08 07:28:26 -05:00
|
|
|
error: unknown format trait `notimplemented`
|
Point at formatting descriptor string when it is invalid
When a formatting string contains an invalid descriptor, point at it
instead of the argument:
```
error: unknown format trait `foo`
--> $DIR/ifmt-bad-arg.rs:86:17
|
LL | println!("{:foo}", 1);
| ^^^
|
= 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
```
2019-11-05 13:55:00 -06:00
|
|
|
--> $DIR/ifmt-unknown-trait.rs:2:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | format!("{:notimplemented}", "3");
|
Point at formatting descriptor string when it is invalid
When a formatting string contains an invalid descriptor, point at it
instead of the argument:
```
error: unknown format trait `foo`
--> $DIR/ifmt-bad-arg.rs:86:17
|
LL | println!("{:foo}", 1);
| ^^^
|
= 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
```
2019-11-05 13:55:00 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-07-29 23:24:10 -05:00
|
|
|
|
|
|
|
|
= 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
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|