Point at internal span in format string

This commit is contained in:
Esteban Küber 2018-07-22 22:40:24 -07:00
parent d3b3bc5767
commit 38abca8c2d
5 changed files with 224 additions and 18 deletions

View file

@ -1,8 +1,8 @@
error: 1 positional argument in format string, but no arguments were given
--> $DIR/macro-backtrace-println.rs:24:30
--> $DIR/macro-backtrace-println.rs:24:31
|
LL | ($fmt:expr) => (myprint!(concat!($fmt, "/n"))); //~ ERROR no arguments were given
| ^^^^^^^^^^^^^^^^^^^
| ^^
...
LL | myprintln!("{}");
| ----------------- in this macro invocation