mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
9 lines
272 B
Rust
9 lines
272 B
Rust
struct Foo {}
|
|
|
|
impl<const UNUSED: usize> Drop for Foo {}
|
|
//~^ ERROR: `Drop` impl requires `the constant `_` has type `usize``
|
|
//~| ERROR: the const parameter `UNUSED` is not constrained by the impl trait, self type, or predicates
|
|
//~| ERROR: missing: `drop`
|
|
|
|
fn main() {}
|