.cargo/vendor/cbindgen/tests/rust/opaque.rs
raw| 1 | /// Fast hash map used internally. |
| 2 | type FastHashMap<K, V> = |
| 3 | std::collections::HashMap<K, V, std::hash::BuildHasherDefault<std::collections::hash_map::DefaultHasher>>; |
| 4 | |
| 5 | pub type Foo = FastHashMap<i32, i32>; |
| 6 | |
| 7 | pub type Bar = Result<Foo, ()>; |
| 8 | |
| 9 | #[no_mangle] |
| 10 | pub extern "C" fn root(a: &Foo, b: &Bar) {} |