error[E0308]: mismatched types
--> tests/fail-guards/reference.rs:3:1
|
3 | / icydb::endpoints! {
4 | | icydb_sql_query(introspection = true, authorization = guard(reference_guard));
5 | | }
| | ^
| | |
| |_expected fn pointer, found fn item
| expected due to this
|
= note: expected fn pointer `fn(ReadAuthorizationContext) -> ReadAuthorizationDecision`
found fn item `for<'a> fn(&'a ReadAuthorizationContext) -> ReadAuthorizationDecision {reference_guard}`
= note: this error originates in the macro `$crate::__icydb_endpoints_internal` which comes from the expansion of the macro `icydb::endpoints` (in Nightly builds, run with -Z macro-backtrace for more info)