mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
23 lines
262 B
Rust
23 lines
262 B
Rust
//@ check-pass
|
|
//@ aux-build:test-macros.rs
|
|
|
|
#[macro_use]
|
|
extern crate test_macros;
|
|
|
|
mod m1 {
|
|
use m2::Empty;
|
|
|
|
#[derive(Empty)]
|
|
struct A {}
|
|
}
|
|
|
|
mod m2 {
|
|
pub type Empty = u8;
|
|
|
|
#[derive(Empty)]
|
|
#[empty_helper]
|
|
struct B {}
|
|
}
|
|
|
|
fn main() {}
|