summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/issue-39226.rs
blob: 0f784f02b41b64365ba70a32655ebcbdccced38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Handle {}

struct Something {
    handle: Handle
}

fn main() {
    let handle: Handle = Handle {};

    let s: Something = Something {
        handle: Handle
        //~^ ERROR expected value, found struct `Handle`
    };
}