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 Permalink Normal View History

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