diff options
Diffstat (limited to 'tests/ui/proc-macro/edition-imports-2018.rs')
-rw-r--r-- | tests/ui/proc-macro/edition-imports-2018.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/edition-imports-2018.rs b/tests/ui/proc-macro/edition-imports-2018.rs new file mode 100644 index 000000000..5a77cd4ef --- /dev/null +++ b/tests/ui/proc-macro/edition-imports-2018.rs @@ -0,0 +1,24 @@ +// build-pass (FIXME(62277): could be check-pass?) +// edition:2018 +// aux-build:edition-imports-2015.rs + +#[macro_use] +extern crate edition_imports_2015; + +mod import { + pub struct Path; +} +mod absolute { + pub struct Path; +} + +mod check { + #[derive(Derive2015)] // OK + struct S; + + fn check() { + Path; + } +} + +fn main() {} |