Nightly #![feature(generic_const_exprs)]
: mismatched types in derive macro Clone
#106419
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
requires-nightly
This issue requires a nightly compiler in some way.
The
Clone
derive macro gets confused about ordering of const parameters of same type.Code:
rustc demo.rs
Error:
To work around do any of:
as usize
in[(); A as usize]:,
and[(); B as usize]:,
#[derive(Clone)]
, Copy
afterClone
.A
andB
different types.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: