rust/tests/ui/proc-macro/issue-53481.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

23 lines
271 B
Rust

//@ check-pass
//@ proc-macro: test-macros.rs
#[macro_use]
extern crate test_macros;
mod m1 {
use crate::m2::Empty;
#[derive(Empty)]
struct A {}
}
mod m2 {
pub type Empty = u8;
#[derive(Empty)]
#[empty_helper]
struct B {}
}
fn main() {}