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

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

11 lines
193 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> Copy for Wrapper<S> {}
2023-03-07 23:55:51 +00:00
//~^ ERROR the trait `Copy` cannot be implemented for this type
fn main() {}