]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/foreign-item-const-parameter.rs
Auto merge of #106520 - ehuss:update-mdbook, 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() {}