-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
#[cfg_attr(test, faux::create)]
struct Object {}
#[cfg_attr(test, faux::methods)]
impl Object {
pub fn method<A>(&self, data: impl IntoIterator<Item = A>) {}
}
#[test]
fn test_mock() {
let o = Object::faux();
}
Error is
error[E0191]: the value of the associated type `IntoIter` (from trait `IntoIterator`) must be specified
|
784 | pub fn method<A>(&self, data: impl IntoIterator<Item = A>) {}
| ^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `IntoIterator<Item = A, IntoIter = Type>`
Metadata
Metadata
Assignees
Labels
No labels