summary refs log tree commit diff
path: root/src/test/ui/issues/issue-26997.rs
blob: a2b32a13678a5e2c3d6f9fd5fe7c7d0dbbcc8de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
pub struct Foo {
    x: isize,
    y: isize
}

impl Foo {
    pub extern fn foo_new() -> Foo {
        Foo { x: 21, y: 33 }
    }
}

fn main() {}