]> git.proxmox.com Git - rustc.git/blame - tests/ui/box/unit/unique-assign-generic.rs
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / ui / box / unit / unique-assign-generic.rs
CommitLineData
b7449926 1// run-pass
1a4d82fc 2
1a4d82fc 3fn f<T>(t: T) -> T {
223e47cc
LB
4 let t1 = t;
5 t1
6}
7
8pub fn main() {
c295e0f8
XL
9 let t = f::<Box<_>>(Box::new(100));
10 assert_eq!(t, Box::new(100));
223e47cc 11}