diff options
Diffstat (limited to 'src/test/ui/structs-enums/newtype-struct-xc-2.rs')
-rw-r--r-- | src/test/ui/structs-enums/newtype-struct-xc-2.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/structs-enums/newtype-struct-xc-2.rs b/src/test/ui/structs-enums/newtype-struct-xc-2.rs new file mode 100644 index 000000000..40837321b --- /dev/null +++ b/src/test/ui/structs-enums/newtype-struct-xc-2.rs @@ -0,0 +1,15 @@ +// run-pass +// aux-build:newtype_struct_xc.rs + +// pretty-expanded FIXME #23616 + +extern crate newtype_struct_xc; +use newtype_struct_xc::Au; + +fn f() -> Au { + Au(2) +} + +pub fn main() { + let _ = f(); +} |