feat(errors): add stable error propagation

This commit is contained in:
Onur Özkan committed 2026-08-23 00:40:17 +03:00
1 parent 97acb2a2d7
commit ba9c97ed3b
34 files changed
+1007

No files matched your search

@@ -0,0 +1,17 @@
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)