error[E0308]: mismatched types --> tests/ui/non_result.rs:9:1 | 9 | #[propagate] | ^^^^^^^^^^^^ | | | expected `&Result<_, _>`, found `&bool` | arguments to this function are incorrect | = note: expected reference `&Result<_, _>` found reference `&bool` note: function defined here --> tests/ui/non_result.rs:6:12 | 6 | pub fn report_result(_: &Result, _: &'static str) {} | ^^^^^^^^^^^^^ ---------------- = note: this error originates in the attribute macro `propagate` (in Nightly builds, run with -Z macro-backtrace for more info)