format!("{}{}{};", prefix, sep, ty_str)
})
}
- // FIXME(#2097) support extern types.
- ast::ForeignItemKind::Ty => unimplemented!(),
+ ast::ForeignItemKind::Ty => {
+ let vis = format_visibility(&self.vis);
+ Some(format!("{}type {};", vis, self.ident))
+ }
}?;
let missing_span = if self.attrs.is_empty() {
fn DMR_GetDevice(pHDev: *mut HDEV, searchMode: DeviceSearchMode, pSearchString: *const c_char, devNr: c_uint, wildcard: c_char) -> TDMR_ERROR;
fn quux() -> (); // Post comment
+
+ pub type
+ Foo;
+
+ type Bar;
}
extern "Rust" { static ext: u32;