]>
git.proxmox.com Git - rustc.git/blob - tests/ui/box/new-box-syntax.rs
2 // pretty-expanded FIXME #23616
4 /* Any copyright is dedicated to the Public Domain.
5 * http://creativecommons.org/publicdomain/zero/1.0/ */
7 #![allow(dead_code, unused_variables)]
9 // Tests that the new `box` syntax works with unique pointers.
19 let y
: Box
<isize> = Box
::new(2);
20 let b
: Box
<isize> = Box
::new(1 + 2);
21 let c
= Box
::new(3 + 4);
23 let s
: Box
<Structure
> = Box
::new(Structure
{