diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26997.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26997.rs b/src/test/ui/issues/issue-26997.rs new file mode 100644 index 000000000..3653e6273 --- /dev/null +++ b/src/test/ui/issues/issue-26997.rs @@ -0,0 +1,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() {} |