new borrow checker (mass squash)
This commit is contained in:
parent
b5a7e8b353
commit
a896440ca1
172 changed files with 6475 additions and 4303 deletions
|
@ -18,6 +18,6 @@ fn main() {
|
|||
|
||||
loop {
|
||||
let x = 1 + *p;
|
||||
p = &x; //~ ERROR illegal borrow
|
||||
p = &x; //~ ERROR borrowed value does not live long enough
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue