diff options
Diffstat (limited to 'src/test/ui/modules/mod_file_with_path_attr.rs')
-rw-r--r-- | src/test/ui/modules/mod_file_with_path_attr.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/modules/mod_file_with_path_attr.rs b/src/test/ui/modules/mod_file_with_path_attr.rs new file mode 100644 index 000000000..48e253ead --- /dev/null +++ b/src/test/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); +} |