> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-RUST-HANDLE-0001: Rust opaque handle contract is invalid.

> Rust opaque handle contract is invalid.

`SIFR-RUST-HANDLE-0001` belongs to the **Rust opaque handles** diagnostic family. It means: rust opaque handle contract is invalid.

## Why It Happens

A Rust opaque-handle or resource-lifetime rule was violated. Keep handles within their valid ownership scope.

<Info>
  Use `sifr --explain SIFR-RUST-HANDLE-0001` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Details

| Field                  | Value                                                                                                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Code                   | `SIFR-RUST-HANDLE-0001`                                                                                                                |
| Family                 | `RUST-HANDLE`                                                                                                                          |
| Severity               | Error                                                                                                                                  |
| Stability              | stable                                                                                                                                 |
| Owner                  | `sifr_driver::build::rust_interop`                                                                                                     |
| Representative fixture | `crates/sifr_driver/src/build/rust_interop_contract_tests.rs::package_rust_interop_opaque_close_policy_requires_close_method_contract` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
