summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/nonexistent-field-not-ambiguous.rs
blob: 1cd192b783cdb3b794d56f7ca52bf81e02ac5068 (plain)
1
2
3
4
5
6
7
8
struct Foo {
    val: MissingType,
    //~^ ERROR cannot find type `MissingType` in this scope
}

fn main() {
    Foo { val: Default::default() };
}