]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-48728.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[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() {}