diff options
Diffstat (limited to 'tests/ui/union/unresolved-field-isnt-copy.rs')
-rw-r--r-- | tests/ui/union/unresolved-field-isnt-copy.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/union/unresolved-field-isnt-copy.rs b/tests/ui/union/unresolved-field-isnt-copy.rs new file mode 100644 index 000000000..7a6d79b2f --- /dev/null +++ b/tests/ui/union/unresolved-field-isnt-copy.rs @@ -0,0 +1,8 @@ +// Unresolved fields are not copy, but also shouldn't report an extra E0740. + +pub union Foo { + x: *const Missing, + //~^ ERROR cannot find type `Missing` in this scope +} + +fn main() {} |