mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
16 lines
227 B
Rust
16 lines
227 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() {}
|