]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/foreign-item-const-parameter.rs
Rollup merge of #87742 - npmccallum:naked_ffi, r=Amanieu
[rust.git] / src / test / ui / const-generics / foreign-item-const-parameter.rs
1 // revisions: full min
2
3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
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() {}