Replace be with become
As per rust-lang/rfcs#601, replace `be` with `become` as reserved keyword for tail call optimization.
This commit is contained in:
parent
3b2ed14906
commit
8f7c2d518d
4 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
|
|
@ -9,6 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
let be = 0;
|
||||
//~^ ERROR `be` is a reserved keyword
|
||||
let become = 0;
|
||||
//~^ ERROR `become` is a reserved keyword
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue