mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-24 06:24:35 +00:00
14 lines
333 B
Rust
14 lines
333 B
Rust
// 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() {}
|