The current array_vec macro seems to have problems with some inputs. If you give it the following input
// Somewhere in your codebase
struct T(i32);
impl T {
fn new(x:i32) -> T { T(x) }
}
// Calling the macro
fn main() {
array_vec!(T::new(2));
}
The compilation will terminate with an error saying
Expected type, found 2
This seems to be an issue even in general cases as shown by this example.
As of this writing, I am not sure if this is because of some kind of bug inside rustc or not, so I am opening the issue here for now.
The current
array_vecmacro seems to have problems with some inputs. If you give it the following inputThe compilation will terminate with an error saying
This seems to be an issue even in general cases as shown by this example.
As of this writing, I am not sure if this is because of some kind of bug inside
rustcor not, so I am opening the issue here for now.