summaryrefslogtreecommitdiffstats
path: root/tests/rust/exclude_generic_monomorph.rs
blob: 78fd1973225208104fef19d2251f16a5215983d3 (plain)
1
2
3
4
5
6
7
8
9
10
#[repr(transparent)]
pub struct Foo(NonZeroU64);

#[repr(C)]
pub struct Bar {
  foo: Option<Foo>,
}

#[no_mangle]
pub extern "C" fn root(f: Bar) {}