rust/tests/ui/union/unresolved-field-isnt-copy.rs
2023-03-08 01:55:32 +00:00

9 lines
189 B
Rust

// 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() {}