mirror of
https://github.com/sam0x17/pub-fields.git
synced 2025-04-04 13:27:37 +03:00
15 lines
229 B
Rust
15 lines
229 B
Rust
mod submod {
|
|
use pub_fields::pub_fields;
|
|
|
|
#[pub_fields]
|
|
pub struct MyStruct {
|
|
a: usize,
|
|
b: usize,
|
|
c: usize,
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn test_it() {
|
|
let x = submod::MyStruct { a: 3, b: 4, c: 5 };
|
|
}
|