mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
172 B
Rust
15 lines
172 B
Rust
#[derive(Copy, Clone)]
|
|
struct Flags;
|
|
|
|
trait A {
|
|
}
|
|
|
|
impl<T> Drop for T where T: A {
|
|
//~^ ERROR E0120
|
|
//~| ERROR E0210
|
|
fn drop(&mut self) {
|
|
}
|
|
}
|
|
|
|
fn main() {}
|