rust/src/test/ui/generics/generic-fn-unique.rs
2019-07-27 18:56:16 +03:00

7 lines
137 B
Rust

// run-pass
#![feature(box_syntax)]
fn f<T>(x: Box<T>) -> Box<T> { return x; }
pub fn main() { let x = f(box 3); println!("{}", *x); }