18 lines
602 B
Plaintext
18 lines
602 B
Plaintext
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<T, E>(_: &Result<T, E>, _: &'static str) {}
|
|
| ^^^^^^^^^^^^^ ----------------
|
|
= note: this error originates in the attribute macro `propagate` (in Nightly builds, run with -Z macro-backtrace for more info)
|