]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-48728.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.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() {}