]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/self/arbitrary_self_types_unsized_struct.rs
5 struct Foo
<T
: ?Sized
>(T
);
8 fn len(self: Rc
<Self>) -> usize {
14 let rc
= Rc
::new(Foo([1u8,2,3])) as Rc
<Foo
<[u8]>>;
15 assert_eq
!(3, rc
.len());