summary refs log tree commit diff
path: root/src/test/ui/const-generics/foreign-item-const-parameter.rs
blob: 83caa89f033009eefd4b2f922809f6bba888ccfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// revisions: full min

#![cfg_attr(full, feature(const_generics))]
#![cfg_attr(full, allow(incomplete_features))]

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() {}