summaryrefslogtreecommitdiffstats
path: root/src/test/ui/codemap_tests/bad-format-args.stderr
blob: 8f79beaa9e1b72fe7c991d6f802ad82fb685d16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: requires at least a format string argument
  --> $DIR/bad-format-args.rs:2:5
   |
LL |     format!();
   |     ^^^^^^^^^
   |
   = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `,`, found `1`
  --> $DIR/bad-format-args.rs:3:16
   |
LL |     format!("" 1);
   |                ^ expected `,`

error: expected one of `,`, `.`, `?`, or an operator, found `1`
  --> $DIR/bad-format-args.rs:4:19
   |
LL |     format!("", 1 1);
   |                   ^ expected one of `,`, `.`, `?`, or an operator

error: aborting due to 3 previous errors