blob: 1af6d5742b1f618a7a93d4ab03cb73b59274a6cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// regression test for #124350
struct Node<const D: usize> {}
impl<const D: usize> Node<D>
where
SmallVec<{ D * 2 }>:,
//~^ ERROR generic parameters may not be used in const operations
//~| ERROR constant provided when a type was expected
{
fn new() -> Self {
Node::new()
}
}
struct SmallVec<T1>(T1);
fn main() {}
|