]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-48728.rs
1 // Regression test for #48728, an ICE that occurred computing
2 // coherence "help" information.
4 #[derive(Clone)] //~ ERROR conflicting implementations of trait `std::clone::Clone`
5 struct Node
<T
: ?Sized
>(Box
<T
>);
7 impl<T
: Clone
+ ?Sized
> Clone
for Node
<[T
]> {
8 fn clone(&self) -> Self {
9 Node(Box
::clone(&self.0))