Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The borrow checker is fully static.

There are types in the standard library that, if you use them, do runtime checks. If you run afoul of those checks, then yes, you’ll get a runtime failure. (The primary example being RefCell<T> linked in the article linked there, yes.)

These types are not super common in Rust code generally, but they do exist and are useful at times.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: