rust/tests/ui/modules/mod_file_with_path_attr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
202 B
Rust
Raw Normal View History

// run-pass
2016-10-12 20:54:41 +03:00
// ignore-pretty issue #37195
2012-11-09 16:31:44 -08:00
// 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);
}