mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 19:21:32 +00:00
18 lines
338 B
Rust
18 lines
338 B
Rust
// issue #20126
|
|
|
|
#[derive(Copy, Clone)] //~ ERROR the trait `Copy` cannot be implemented
|
|
struct Foo;
|
|
|
|
impl Drop for Foo {
|
|
fn drop(&mut self) {}
|
|
}
|
|
|
|
#[derive(Copy, Clone)] //~ ERROR the trait `Copy` cannot be implemented
|
|
struct Bar<T>(::std::marker::PhantomData<T>);
|
|
|
|
impl<T> Drop for Bar<T> {
|
|
fn drop(&mut self) {}
|
|
}
|
|
|
|
fn main() {}
|