]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/foreign-item-const-parameter.rs
Rollup merge of #75201 - Hirrolot:hirrolot/fix-clippy-warnings, r=varkor
[rust.git] / src / test / ui / const-generics / foreign-item-const-parameter.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 extern "C" {
5     fn foo<const X: usize>(); //~ ERROR foreign items may not have const parameters
6
7     fn bar<T, const X: usize>(_: T); //~ ERROR foreign items may not have type or const parameters
8 }
9
10 fn main() {}