rust/tests/ui/structs-enums/foreign-struct.rs

19 lines
224 B
Rust
Raw Permalink Normal View History

//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
// Passing enums by value
2020-09-01 21:12:52 +00:00
pub enum void {}
mod bindgen {
use super::void;
2020-09-01 21:12:52 +00:00
extern "C" {
2013-05-08 04:33:31 +00:00
pub fn printf(v: void);
}
}
2020-09-01 21:12:52 +00:00
pub fn main() {}