Wrong number of type arguments: expected 1, found 2
slyons opened this issue · 3 comments
error[E0107]: wrong number of type arguments: expected 1, found 2
--> src/day3.rs:101:1
|
101 | #[aoc(day3,part1)]
| ^^^^^^^^^^^^^^^^^^ unexpected type argument
I've started running into this issue now that I've hit day 3 (only discovered AoC around Christmas.
My solver functions in question look like this:
pub fn solver_part1(input: &[Claim]) -> usize {
let mut g = Grid::new();
for claim in input {
for p in claim.iter_points() {
*g.entry(p).or_default() += 1;
}
}
g.values().filter(|&&count| count > 1).count()
}
I've got the first two days solved just fine and I can't tell what's causing the problem.
I just ran into this issue too, doing old aoc. What fixed it for me was removing use json::*;
( reference to the third party crate json
) from the top of the file.
No idea why that would be causing this, but it does work now. I'll try and take a look and see if I can figure out why this is breaking it in a few weeks when I'll have some more time.
Oh, it might have something to do with re-exported Result
types, I'm planning a new release before December 1st, and I'll make sure to use full path results each time !
Thanks a lot for reporting ;)
Similar issue with use std::fmt::{Display, Formatter, Result};