summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/unresolved-field-isnt-copy.rs
blob: 7a6d79b2faa8850df582a849e747ac0223017fe4 (plain)
1
2
3
4
5
6
7
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() {}