graydon/rust — Issue #1387: invalid location with #debug type error
Author: erickt
Created: 2011-12-27 03:47:09+00:00
State: open

This code highlights an invalid code location:

fn main() {
let x = [1,2,3];
#debug(x);
}

Returns this error message:

foo.rs:4:186: 4:187 error: first argument to #fmt must be a string literal.
foo.rs:4 }
^
rust: upcall fail 'explicit failure', ../src/comp/driver/session.rs:71
rust: domain main @0x102029600 root task failed
rust: fatal, 'leaked memory in rust main loop (2 objects)' failed, ../src/rt/memory_region.cpp:158 2 objects