about summary refs log tree commit diff
path: root/tests/ui/issues/issue-26997.rs
blob: 5441dc68bae6c008b3e8d6f66f5e7dde46e4b4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ 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() {}