수정 20분 읽기 중급
Rust 소유권 에러 예제: cannot move out·cannot borrow as mutable·조건부 반환 빌림과 수명 에러 해결
cannot move out of borrowed content(E0507), cannot borrow as mutable more than once(E0499), 조건부로 참조를 반환할 때의 E0502, 지역 변수 참조 반환(E0515), 스레드 클로저의 E0373 같은 Rust 소유권 에러를 문제 코드와 컴파일러 메시지로 재현하고, 원인과 해결 코드를 예제별로 보여 줍니다.