about summary refs log tree commit diff
path: root/tests/ui/errors/span-format_args-issue-140578.stderr
blob: 6a273e5cd515cee252c722c18d7b2f97cc788ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error[E0282]: type annotations needed
  --> $DIR/span-format_args-issue-140578.rs:2:28
   |
LL |   print!("{:?} {a} {a:?}", [], a = 1 + 1);
   |                            ^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `print` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
  --> $DIR/span-format_args-issue-140578.rs:7:30
   |
LL |   println!("{:?} {a} {a:?}", [], a = 1 + 1);
   |                              ^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
  --> $DIR/span-format_args-issue-140578.rs:12:35
   |
LL |   println!("{:?} {:?} {a} {a:?}", [], [], a = 1 + 1);
   |                                   ^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
  --> $DIR/span-format_args-issue-140578.rs:17:41
   |
LL |   println!("{:?} {:?} {a} {a:?} {b:?}", [], [], a = 1 + 1, b = []);
   |                                         ^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
  --> $DIR/span-format_args-issue-140578.rs:26:9
   |
LL |         [],
   |         ^^ cannot infer type
   |
   = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0282`.