Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
mgca
/
direct-const-arg-multiple-exprs.rs
blob: 8c802e563db7c8af8d33dc81ecc650895e5cf64b [
file
] [
edit
]
#![
feature
(
min_generic_const_args
)]
struct
S
<
const
N
:
usize
>;
fn
foo
<
const
N
:
usize
,
const
M
:
usize
>(
_
:
S
<
core
::
direct_const_arg
!(
N
,
M
)>)
{}
//~^ ERROR direct_const_arg! takes 1 argument
fn
main
()
{}