Rust E0382: borrow of moved value
A non-Copy value was moved into another binding or function and subsequently accessed.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
Identifier: Rust E0382: borrow of moved value
Platform: Rust
Interactive Diagnostic Checklist
Safe Diagnostic Command:
rustc --explain E0382
Technical Explanation
A non-Copy value was moved into another binding or function and subsequently accessed. Verified resolution path: Pass a shared reference (`&val`), restructure ownership scope, or explicitly `.clone()` where cheap.
Worked Examples
- Read-only diagnostic command: rustc --explain E0382
Limitations & Assumptions
- Always verify which infrastructure layer (CDN, Nginx, runtime, OS, or database) emitted the error before modifying production config.
Source References & Verification
Resource ID: err-rust-e0382-moved-value · Independently verified: 2026-11-25