summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/foreign-item-const-parameter.rs
blob: 4fe377b5964f74a43f6b5cd08db2cd6f0218d09d (plain)
1
2
3
4
5
6
7
extern "C" {
    fn foo<const X: usize>(); //~ ERROR foreign items may not have const parameters

    fn bar<T, const X: usize>(_: T); //~ ERROR foreign items may not have type or const parameters
}

fn main() {}