diff options
Diffstat (limited to 'src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs')
-rw-r--r-- | src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs b/src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs new file mode 100644 index 000000000..dd22df89e --- /dev/null +++ b/src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs @@ -0,0 +1,12 @@ +pub fn foo() {} + +#[macro_export] +macro_rules! macro_2015 { + () => { + use edition_lint_paths as other_name; + use edition_lint_paths::foo as other_foo; + fn check_macro_2015() { + ::edition_lint_paths::foo(); + } + } +} |