tests: Move run-pass tests without naming conflicts to ui
This commit is contained in:
parent
ca9faa52f5
commit
9be35f82c1
3226 changed files with 64 additions and 196 deletions
23
src/test/ui/modules/mod_dir_path.rs
Normal file
23
src/test/ui/modules/mod_dir_path.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
// run-pass
|
||||
#![allow(unused_macros)]
|
||||
// ignore-pretty issue #37195
|
||||
|
||||
mod mod_dir_simple {
|
||||
#[path = "test.rs"]
|
||||
pub mod syrup;
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
assert_eq!(mod_dir_simple::syrup::foo(), 10);
|
||||
|
||||
#[path = "auxiliary"]
|
||||
mod foo {
|
||||
mod two_macros_2;
|
||||
}
|
||||
|
||||
#[path = "auxiliary"]
|
||||
mod bar {
|
||||
macro_rules! m { () => { mod two_macros_2; } }
|
||||
m!();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue