]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-48728.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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() {}