mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
auto merge of #18377 : steveklabnik/rust/fix_wording_about_errors, r=nikomatsakis
see https://github.com/rust-lang/rust/pull/18176#discussion_r19374679 /cc @eddyb @huonw @nikomatsakis
This commit is contained in:
commit
52c3fe9533
@ -3527,8 +3527,8 @@ everyone plays by these rules. At compile time, it verifies that none of these
|
|||||||
rules are broken. If our program compiles successfully, Rust can guarantee it
|
rules are broken. If our program compiles successfully, Rust can guarantee it
|
||||||
is free of data races and other memory errors, and there is no runtime overhead
|
is free of data races and other memory errors, and there is no runtime overhead
|
||||||
for any of this. The borrow checker works only at compile time. If the borrow
|
for any of this. The borrow checker works only at compile time. If the borrow
|
||||||
checker did find a problem, it will report a **lifetime error**, and your
|
checker did find a problem, it will report an error and your program will
|
||||||
program will refuse to compile.
|
refuse to compile.
|
||||||
|
|
||||||
That's a lot to take in. It's also one of the _most_ important concepts in
|
That's a lot to take in. It's also one of the _most_ important concepts in
|
||||||
all of Rust. Let's see this syntax in action:
|
all of Rust. Let's see this syntax in action:
|
||||||
|
Loading…
Reference in New Issue
Block a user