]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-16058.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-16058.rs
1 // ignore-sgx std::os::fortanix_sgx::usercalls::raw::Result changes compiler suggestions
2
3 pub struct GslResult {
4     pub val: f64,
5     pub err: f64
6 }
7
8 impl GslResult {
9     pub fn new() -> GslResult {
10         Result {
11 //~^ ERROR expected struct, variant or union type, found enum `Result`
12             val: 0f64,
13             err: 0f64
14         }
15     }
16 }
17
18 fn main() {}