]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/drop_impl.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / drop_impl.rs
1 //check-pass
2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
4
5 struct Foo<const N: usize>
6 where
7     [(); N + 1]: ;
8
9 impl<const N: usize> Drop for Foo<N>
10 where
11     [(); N + 1]: ,
12 {
13     fn drop(&mut self) {}
14 }
15
16 fn main() {}