1
Fork 0
rust/src/test/ui/const-generics/const_evaluatable_checked/drop_impl.rs

17 lines
259 B
Rust
Raw Normal View History

2021-08-04 18:30:41 +01:00
//check-pass
#![feature(const_generics, const_evaluatable_checked)]
#![allow(incomplete_features)]
struct Foo<const N: usize>
where
[(); N + 1]: ;
impl<const N: usize> Drop for Foo<N>
where
[(); N + 1]: ,
{
fn drop(&mut self) {}
}
fn main() {}