Skip to content

Commit 7cc995c

Browse files
committed
Added comment to tests/ui/box/self-assignment.rs
1 parent e910f44 commit 7cc995c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/ui/box/self-assignment.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
//@ run-pass
2+
//! regression test for <https://github.com/rust-lang/rust/issues/3290>
3+
24
#![allow(dead_code)]
35

46
pub fn main() {
5-
let mut x: Box<_> = Box::new(3);
6-
x = x;
7-
assert_eq!(*x, 3);
7+
let mut x: Box<_> = Box::new(3);
8+
x = x;
9+
assert_eq!(*x, 3);
810
}

0 commit comments

Comments
 (0)