summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-48728.rs
blob: cbdc10bd2e1ea0ca74d4e9a7bfc63919e5e50df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Regression test for #48728, an ICE that occurred computing
// coherence "help" information.

#[derive(Clone)] //~ ERROR conflicting implementations of trait `Clone`
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() {}