We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl SomeType
Example: if a parameter to a mocked function is &impl serde::Serialize, faux will fail to compile.
&impl serde::Serialize
The culprit is this line:
let input: (#(#arg_types),*) = unsafe { std::mem::transmute((#(#arg_idents),*)) };
This becomes:
let input: (&impl serde::Serialize) = unsafe { std::mem::transmute((_x0)) };
There is an issue for using impl on a let binding but I am unsure how the transmute might work with that: rust-lang/rust#63065 🤷♂️
impl
The text was updated successfully, but these errors were encountered:
The problem with the way the code is expanded is "fixed" in 500e9a9 but impl arguments or any generic argument still does not work. Tracked in #18
Sorry, something went wrong.
No branches or pull requests
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: rust-lang/rust#63065 🤷♂️The text was updated successfully, but these errors were encountered: