rust/tests/ui/issues/issue-48728.rs
2024-10-15 13:11:00 +02:00

15 lines
293 B
Rust

// Regression test for #48728, an ICE that occurred computing
// coherence "help" information.
//@ check-pass
#[derive(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() {}