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