mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
15 lines
329 B
Rust
15 lines
329 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/48728>.
|
|
//! ICE 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() {}
|