]>
Commit | Line | Data |
---|---|---|
3dfed10e XL |
1 | // revisions: full min |
2 | ||
3 | #![cfg_attr(full, feature(const_generics))] | |
4 | #![cfg_attr(full, allow(incomplete_features))] | |
e1599b0c XL |
5 | |
6 | extern "C" { | |
7 | fn foo<const X: usize>(); //~ ERROR foreign items may not have const parameters | |
8 | ||
9 | fn bar<T, const X: usize>(_: T); //~ ERROR foreign items may not have type or const parameters | |
10 | } | |
11 | ||
12 | fn main() {} |