rust/tests/ui/suggestions/missing-bound-in-manual-copy-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
187 B
Rust
Raw Normal View History

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