about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-16058.rs
blob: 608edb82f025e5b774c77a7cf045fd677f24c82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ ignore-sgx std::os::fortanix_sgx::usercalls::raw::Result changes compiler suggestions

pub struct GslResult {
    pub val: f64,
    pub err: f64
}

impl GslResult {
    pub fn new() -> GslResult {
        Result {
//~^ ERROR expected struct, variant or union type, found enum `Result`
            val: 0f64,
            err: 0f64
        }
    }
}

fn main() {}