blob: c4a2911d3fb0743445a30906afae641a11091af2 [file]
error[E0282]: type annotations needed
--> $DIR/span-format_args-issue-140578.rs:2:28
|
LL | print!("{:?} {a} {a:?}", [], a = 1 + 1);
| ---- ^^ cannot infer type
| |
| required by this formatting parameter
|
= note: the type must also implement `Debug`
= note: required for `[_; 0]` to implement `Debug`
error[E0282]: type annotations needed
--> $DIR/span-format_args-issue-140578.rs:7:30
|
LL | println!("{:?} {a} {a:?}", [], a = 1 + 1);
| ---- ^^ cannot infer type
| |
| required by this formatting parameter
|
= note: the type must also implement `Debug`
= note: required for `[_; 0]` to implement `Debug`
error[E0282]: type annotations needed
--> $DIR/span-format_args-issue-140578.rs:12:35
|
LL | println!("{:?} {:?} {a} {a:?}", [], [], a = 1 + 1);
| ---- ^^ cannot infer type
| |
| required by this formatting parameter
|
= note: the type must also implement `Debug`
= note: required for `[_; 0]` to implement `Debug`
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
| |
| required by this formatting parameter
|
= note: the type must also implement `Debug`
= note: required for `[_; 0]` to implement `Debug`
error[E0282]: type annotations needed
--> $DIR/span-format_args-issue-140578.rs:26:9
|
LL | {:?} {:?}
| ---- required by this formatting parameter
...
LL | [],
| ^^ cannot infer type
|
= note: the type must also implement `Debug`
= note: required for `[_; 0]` to implement `Debug`
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0282`.