summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/missing-copy-implementations-negative-copy.rs
blob: b29d2209fa9f9cc30fa962f0e5c8273e2c36f6a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for issue #101980.
// Ensure that we don't suggest impl'ing `Copy` for a type if it already impl's `!Copy`.

// check-pass

#![feature(negative_impls)]
#![deny(missing_copy_implementations)]

pub struct Struct {
    pub field: i32,
}

impl !Copy for Struct {}

fn main() {}