diff options
Diffstat (limited to 'tests/ui/resolve/issue-16058.rs')
| -rw-r--r-- | tests/ui/resolve/issue-16058.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-16058.rs b/tests/ui/resolve/issue-16058.rs new file mode 100644 index 00000000000..048aaf65fbf --- /dev/null +++ b/tests/ui/resolve/issue-16058.rs @@ -0,0 +1,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() {} |
