mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
228 B
Rust
15 lines
228 B
Rust
//@ build-pass
|
|
#![allow(dead_code)]
|
|
pub struct Foo {
|
|
x: isize,
|
|
y: isize
|
|
}
|
|
|
|
impl Foo {
|
|
#[allow(improper_ctypes_definitions)]
|
|
pub extern "C" fn foo_new() -> Foo {
|
|
Foo { x: 21, y: 33 }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|