rust/tests/ui/proc-macro/helper-attr-blocked-by-import.rs
Lukas Wirth eae7fe1bdb Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 13:35:31 +02:00

29 lines
365 B
Rust

//@ check-pass
//@ proc-macro: test-macros.rs
#[macro_use(Empty)]
extern crate test_macros;
use self::one::*;
use self::two::*;
mod empty_helper {}
mod one {
use crate::empty_helper;
#[derive(Empty)]
#[empty_helper]
struct One;
}
mod two {
use crate::empty_helper;
#[derive(Empty)]
#[empty_helper]
struct Two;
}
fn main() {}