Report errors better when failing to open files for sub-parsers

This commit is contained in:
Brian Anderson 2012-11-18 14:14:40 -08:00
parent 72cc1aca17
commit 74b2e99797
6 changed files with 72 additions and 25 deletions

View file

@ -0,0 +1,5 @@
mod not_a_real_file; //~ ERROR not_a_real_file.rs
fn main() {
assert mod_file_aux::bar() == 10;
}

View file

@ -0,0 +1,6 @@
#[path = "not_a_real_file.rs"]
mod m; //~ ERROR not_a_real_file.rs
fn main() {
assert m::foo() == 10;
}