rustc: Use spans for #env errors

Issue #444
This commit is contained in:
Brian Anderson 2011-06-04 17:08:50 -04:00
parent ac83e34dc6
commit 3ca5fff195
4 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,5 @@
// error-pattern:malformed #env call
fn main() {
#env();
}

View file

@ -0,0 +1,5 @@
// error-pattern:malformed #env call
fn main() {
#env(10);
}

View file

@ -0,0 +1,5 @@
// error-pattern:malformed #env call
fn main() {
#env("one", "two");
}