rust/tests/ui/union/unresolved-field-isnt-copy.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
189 B
Rust
Raw Normal View History

2023-03-07 16:03:12 -06:00
// 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() {}