코딩Coding/Rust용어
Rust용어)Non-lexical lifetimes
내인생PLUS
2020. 9. 20. 10:15
728x90
https://doc.rust-lang.org/edition-guide/rust-2018/ownership-and-lifetimes/non-lexical-lifetimes.html
Non-lexical lifetimes - The Edition Guide
for 2018 edition for 2015 edition The borrow checker has been enhanced to accept more code, via a mechanism called "non-lexical lifetimes." Consider this example: fn main() { let mut x = 5; let y = &x; let z = &mut x; } In older Rust, this is a compile-tim
doc.rust-lang.org
https://stackoverflow.com/questions/50251487/what-are-non-lexical-lifetimes
What are non-lexical lifetimes?
Rust has an RFC related to non-lexical lifetimes which has been approved to be implemented in the language for a long time. Recently, Rust's support of this feature has improved a lot and is consid...
stackoverflow.com
반응형