]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/foreign-item-const-parameter.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / const-generics / foreign-item-const-parameter.rs
1 extern "C" {
2     fn foo<const X: usize>(); //~ ERROR foreign items may not have const parameters
3
4     fn bar<T, const X: usize>(_: T); //~ ERROR foreign items may not have type or const parameters
5 }
6
7 fn main() {}