Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
early
/
trivial-const-arg-macro-nested-braces.rs
blob: 45c0768dde44a1450e2d7a7aa9632a23b231fda7 [
file
] [
log
] [
blame
] [
edit
]
#[
rustfmt
::
skip
]
macro_rules
!
y
{
()
=>
{
{
N
}
//~^ ERROR: generic parameters may not be used in const operations
};
}
struct
A
<
const
N
:
usize
>;
fn
foo
<
const
N
:
usize
>()
->
A
<{
y
!()
}>
{
A
::<
1
>
}
fn
main
()
{}