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