error[E0308]: mismatched types --> tests/compile_fail/key_type_mismatch.rs:4:23 | 4 | #[memoized(key_expr = a, store_type = HashMap)] | ----------------------^------------------------------------- | | | | | expected `usize`, found `bool` | arguments to this function are incorrect | = note: expected reference `&usize` found reference `&bool` note: function defined here --> tests/compile_fail/key_type_mismatch.rs:4:1 | 4 | #[memoized(key_expr = a, store_type = HashMap)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the attribute macro `memoized` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types --> tests/compile_fail/key_type_mismatch.rs:4:23 | 4 | #[memoized(key_expr = a, store_type = HashMap)] | ----------------------^------------------------------------- | | | | | expected `usize`, found `bool` | arguments to this function are incorrect | = note: expected reference `&usize` found reference `&bool` note: associated function defined here --> src/lib.rs | | fn get(&self, input: &I) -> Option; | ^^^ = note: this error originates in the attribute macro `memoized` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types --> tests/compile_fail/key_type_mismatch.rs:4:23 | 4 | #[memoized(key_expr = a, store_type = HashMap)] | ----------------------^------------------------------------- | | | | | expected `usize`, found `bool` | arguments to this function are incorrect | note: associated function defined here --> src/lib.rs | | fn insert(&mut self, input: I, return_value: R) -> R; | ^^^^^^ = note: this error originates in the attribute macro `memoized` (in Nightly builds, run with -Z macro-backtrace for more info)