2022-07-26 01:37:06 +00:00
|
|
|
//@ run-rustfix
|
2024-02-07 10:42:01 +08:00
|
|
|
#![allow(dead_code)]
|
2022-07-26 01:37:06 +00:00
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
struct Wrapper<T>(T);
|
|
|
|
|
|
|
|
impl<S: Copy> Copy for Wrapper<S> {}
|
2023-03-07 23:55:51 +00:00
|
|
|
//~^ ERROR the trait `Copy` cannot be implemented for this type
|
2022-07-26 01:37:06 +00:00
|
|
|
|
|
|
|
fn main() {}
|