blob: 76a184d8d256a878735d127d6de53b540ed24814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// run-pass
#![feature(box_syntax)]
fn id<T:Send>(t: T) -> T { return t; }
pub fn main() {
let expected: Box<_> = box 100;
let actual = id::<Box<isize>>(expected.clone());
println!("{}", *actual);
assert_eq!(*expected, *actual);
}
|