diff options
Diffstat (limited to 'src/test/ui/borrowck/two-phase-baseline.rs')
-rw-r--r-- | src/test/ui/borrowck/two-phase-baseline.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/borrowck/two-phase-baseline.rs b/src/test/ui/borrowck/two-phase-baseline.rs deleted file mode 100644 index 994dc823d..000000000 --- a/src/test/ui/borrowck/two-phase-baseline.rs +++ /dev/null @@ -1,9 +0,0 @@ -// run-pass - -// This is the "goto example" for why we want two phase borrows. - -fn main() { - let mut v = vec![0, 1, 2]; - v.push(v.len()); - assert_eq!(v, [0, 1, 2, 3]); -} |