You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the span for {} is wrong. With the correct span the error would look like:
error: 1 positional argument in format string, but no arguments were given
--> test.rs:2:15
|
2 | println!("{}\
| ^^
3 | ");
The span is correct when {} is followed by any other character:
fnmain(){println!("{}");}
Output:
error: 1 positional argument in format string, but no arguments were given
--> test.rs:2:15
|
2 | println!("{}
| ^^
error: aborting due to previous error