Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
foreign-item-const-parameter.rs
blob: 4fe377b5964f74a43f6b5cd08db2cd6f0218d09d [
file
] [
log
] [
blame
] [
edit
]
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
()
{}