Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/enum_self.rs

raw
1 #[repr(C)]
2 pub struct Foo<T> {
3 something: *const i32,
4 phantom: std::marker::PhantomData<T>,
5 }
6
7 #[repr(u8)]
8 pub enum Bar {
9 Min(Foo<Self>),
10 Max(Foo<Self>),
11 Other,
12 }
13
14 #[no_mangle]
15 pub extern "C" fn root(b: Bar) {}