rust/src/test/ui/fmt
Esteban Küber 8467ceff22 Tweak format string error to point at arguments always
Add secondary span labels with no text to make it clear when there's a
mismatch bewteen the positional arguments in a format string and the
arguments to the macro. This shouldn't affect experienced users, but it
should make it easier for newcomers to more clearly understand how
`format!()` and `println!()` are supposed to be used.

```
error: 2 positional arguments in format string, but there is 1 argument
 --> file8.rs:2:14
  |
2 |     format!("{} {}", 1);
  |              ^^ ^^   -
```

instead of

```
error: 2 positional arguments in format string, but there is 1 argument
 --> file8.rs:2:14
  |
2 |     format!("{} {}", 1);
  |              ^^ ^^
```
2019-10-23 17:32:33 -07:00
..
format-string-error-2.rs fix tidy 2019-05-31 13:50:04 -07:00
format-string-error-2.stderr fix tidy 2019-05-31 13:50:04 -07:00
format-string-error.rs Tweak format string error to point at arguments always 2019-10-23 17:32:33 -07:00
format-string-error.stderr Tweak format string error to point at arguments always 2019-10-23 17:32:33 -07:00
send-sync.rs Remove licenses 2018-12-25 21:08:33 -07:00
send-sync.stderr On obligation errors point at the unfulfilled binding when possible 2019-09-22 11:33:12 -07:00