rust/tests/ui/errors/span-format_args-issue-140578.stderr

33 lines
1.1 KiB
Text

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