When compiling the following snippet
fn main() {
println!("hello world\
hello world",x);
}
I get the following error message:
Compiling playground v0.0.1 (/playground)
error: argument never used
--> src/main.rs:5:18
|
4 | println!("hello world\
| ______________-
5 | | hello world",x);
| | - ^ argument never used
| |________________|
| formatting specifier missing
I am a bit surprised by the ascii art that is supposed to underline the string literal. Is this expected? What is the rationale behind this design? It must show the first position of the span and the last one?