| 1 |
// { dg-additional-options "-w" } |
| 2 |
|
| 3 |
#[path = "modules/valid_path.rs"] |
| 4 |
mod not_a_valid_path; |
| 5 |
|
| 6 |
#[path ="modules/valid_path.rs"] |
| 7 |
mod path_without_extra_equal; |
| 8 |
|
| 9 |
#[path= "modules/valid_path.rs"] |
| 10 |
mod no_leading_equal; |
| 11 |
|
| 12 |
#[path = "modules/valid_path.rs"] |
| 13 |
mod extra_spaces; |
| 14 |
|
| 15 |
#[path] // { dg-error "path attributes must contain a filename" } |
| 16 |
mod error; // { dg-error "no candidate found" } |
| 17 |
|
| 18 |
// This is "valid", and should only error out when parsing |
| 19 |
// the file |
| 20 |
#[path = "not_a_valid_file.rs"] |
| 21 |
mod another_error; // { dg-error "No such file or directory" } |
| 22 |
|
| 23 |
fn main() {} |