summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-27340.rs
blob: aff37d95a3f3eb3f2719d751405d76d5503f11f9 (plain)
1
2
3
4
5
6
struct Foo;
#[derive(Copy, Clone)]
//~^ ERROR the trait `Copy` cannot be implemented for this type
struct Bar(Foo);

fn main() {}