Skip to content

Commit

Permalink
Merge pull request #206 from asomers/187_fixup
Browse files Browse the repository at this point in the history
Improve an error message from PR #187
  • Loading branch information
asomers authored Sep 7, 2020
2 parents 16b4524 + a1c6f25 commit 9f92e92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mockall_derive/src/mockable_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ impl From<ItemImpl> for MockableStruct {
methods.push(meth)
},
ImplItem::Const(iic) => consts.push(iic),
x => compile_error(x.span(), "TODO 2"),
// Rust doesn't allow types in an inherent impl
x => compile_error(x.span(),
"Unsupported by Mockall in this context"),
}
}
};
Expand Down

0 comments on commit 9f92e92

Please sign in to comment.