Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 5b8e99b

Browse files
authored
Merge pull request #1447 from alexheretic/2018-borrow-error
Rebrake borrow error test
2 parents 08bd1dc + 3566620 commit 5b8e99b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/fixtures/borrow_error/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
name = "borrow_error"
33
version = "0.1.0"
44
authors = ["Jonathan Turner <jturner@mozilla.com>"]
5+
edition = "2018"
56

67
[dependencies]

tests/fixtures/borrow_error/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ fn main() {
22
let mut x = 3;
33
let y = &mut x;
44
let z = &mut x;
5+
*y += 1;
56
}

0 commit comments

Comments
 (0)