]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/const-generics/hash-tyvid-regression-3.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / incremental / const-generics / hash-tyvid-regression-3.rs
1 // revisions: cfail
2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
4 // regression test for #79251
5 struct Node<const D: usize>
6 where
7     SmallVec<{ D * 2 }>: ,
8 {
9     keys: SmallVec<{ D * 2 }>,
10 }
11
12 impl<const D: usize> Node<D>
13 where
14     SmallVec<{ D * 2 }>: ,
15 {
16     fn new() -> Self {
17         let mut node = Node::new();
18         node.keys.some_function();
19         //~^ error: no method named
20         node
21     }
22 }
23
24 struct SmallVec<const D: usize> {}
25
26 fn main() {}