summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3290.rs
blob: 7014d517f181ef9969b803d79ac8e0fc8492fbc0 (plain)
1
2
3
4
5
6
7
8
// run-pass
#![allow(dead_code)]

pub fn main() {
   let mut x: Box<_> = Box::new(3);
   x = x;
   assert_eq!(*x, 3);
}