Closed nrxus closed 4 years ago
The problem with the way the code is expanded is "fixed" in 500e9a9ea2d01396e6291129262bc7def8641d20 but impl
arguments or any generic argument still does not work. Tracked in https://github.com/nrxus/faux/issues/18
Example: if a parameter to a mocked function is
&impl serde::Serialize
, faux will fail to compile.The culprit is this line:
This becomes:
There is an issue for using
impl
on a let binding but I am unsure how the transmute might work with that: https://github.com/rust-lang/rust/issues/63065 :man_shrugging: