2018-04-05 19:15:23 -05:00
|
|
|
// Regression test for #48728, an ICE that occurred computing
|
|
|
|
// coherence "help" information.
|
|
|
|
|
2022-11-09 22:21:11 -06:00
|
|
|
#[derive(Clone)] //~ ERROR conflicting implementations of trait `Clone`
|
2018-04-05 19:15:23 -05:00
|
|
|
struct Node<T: ?Sized>(Box<T>);
|
|
|
|
|
|
|
|
impl<T: Clone + ?Sized> Clone for Node<[T]> {
|
|
|
|
fn clone(&self) -> Self {
|
|
|
|
Node(Box::clone(&self.0))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|