diff options
Diffstat (limited to 'tests/ui/modules/mod_file_with_path_attr.rs')
| -rw-r--r-- | tests/ui/modules/mod_file_with_path_attr.rs | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/tests/ui/modules/mod_file_with_path_attr.rs b/tests/ui/modules/mod_file_with_path_attr.rs new file mode 100644 index 00000000000..48e253eadae --- /dev/null +++ b/tests/ui/modules/mod_file_with_path_attr.rs @@ -0,0 +1,11 @@ +// run-pass +// ignore-pretty issue #37195 + +// Testing that a plain .rs file can load modules from other source files + +#[path = "mod_file_aux.rs"] +mod m; + +pub fn main() { + assert_eq!(m::foo(), 10); +} | 
