> ## 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-ZC-0001: Rust zero-copy or borrowed-view contract is invalid.

> Rust zero-copy or borrowed-view contract is invalid.

`SIFR-RUST-ZC-0001` belongs to the **Rust zero-copy interop** diagnostic family. It means: rust zero-copy or borrowed-view contract is invalid.

## Why It Happens

A Rust zero-copy or borrowed-view exchange failed lifetime or layout checks.

<Info>
  Use `sifr --explain SIFR-RUST-ZC-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-ZC-0001`                                                                                                            |
| Family                 | `RUST-ZC`                                                                                                                      |
| Severity               | Error                                                                                                                          |
| Stability              | stable                                                                                                                         |
| Owner                  | `sifr_driver::build::rust_interop`                                                                                             |
| Representative fixture | `crates/sifr_driver/src/build/rust_interop_zero_copy_contract_tests.rs::package_rust_interop_zero_copy_requires_view_contract` |

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