]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-7673-cast-generically-implemented-trait.rs
3 // pretty-expanded FIXME #23616
7 #7673 Polymorphically creating traits barely works
11 #![feature(box_syntax)]
19 impl<T
: '
static> A
for T {}
21 fn owned2
<T
: '
static>(a
: Box
<T
>) { a as Box<dyn A>; }
22 fn owned3
<T
: '
static>(a
: Box
<T
>) { box a as Box<dyn A>; }