// bindgen-flags: --rust-target 1.0 --wrap-unsafe-ops --no-layout-tests template struct TErrorResult { enum UnionState { HasMessage, HasException, }; int mResult; struct Message; struct DOMExceptionInfo; union { Message* mMessage; DOMExceptionInfo* mDOMExceptionInfo; }; bool mMightHaveUnreported; UnionState mUnionState; }; struct ErrorResult : public TErrorResult { };