1 // ignore-sgx std::os::fortanix_sgx::usercalls::raw::Result changes compiler suggestions
3 use foo::MyEnum::Result;
4 use foo::NoResult; // Through a re-export
7 pub use self::MyEnum::NoResult;
14 fn new() -> NoResult<MyEnum, String> {
15 //~^ ERROR expected type, found variant `NoResult`
21 use foo::MyEnum::Result;
24 fn new() -> Result<foo::MyEnum, String> {
25 //~^ ERROR expected type, found variant `Result`
30 fn new() -> Result<foo::MyEnum, String> {
31 //~^ ERROR expected type, found variant `Result`
35 fn newer() -> NoResult<foo::MyEnum, String> {
36 //~^ ERROR expected type, found variant `NoResult`