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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
255 B
Rust
Raw Normal View History

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