1 // bindgen-flags: --rust-target 1.0 --with-derive-hash --with-derive-partialeq --with-derive-eq --rustified-enum ".*"
2 
3 template<typename T>
4 struct TErrorResult {
5   enum UnionState {
6     HasMessage,
7     HasException,
8   };
9   int mResult;
10   struct Message;
11   struct DOMExceptionInfo;
12   union {
13     Message* mMessage;
14     DOMExceptionInfo* mDOMExceptionInfo;
15   };
16 
17   bool mMightHaveUnreported;
18   UnionState mUnionState;
19 };
20 
21 struct ErrorResult : public TErrorResult<int> {
22 };
23