2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
4 // regression test for #79251
6 struct Node<K, const D: usize>
8 SmallVec<K, { D * 2 }>: ,
10 keys: SmallVec<K, { D * 2 }>,
13 impl<K, const D: usize> Node<K, D>
15 SmallVec<K, { D * 2 }>: ,
22 fn split(&mut self, i: usize, k: K, right: bool) -> Node<K, D> {
23 let mut node = Node::new();
25 //~^ error: no method named
31 struct SmallVec<T, const D: usize> {
34 impl<T, const D: usize> SmallVec<T, D> {