Note the derive(Copy, &Foo), which is invalid. This seems related to pointers and/or hypothetical lifetimes, since the issue doesn't occur when all fields of the union are integers like i32.
This looks similar to #952, but might have a different cause, since essentially every part of the derive(Clone) output gets assigned the span of the token Clone.
This gets rewritten to
Note the
derive(Copy, &Foo)
, which is invalid. This seems related to pointers and/or hypothetical lifetimes, since the issue doesn't occur when all fields of the union are integers likei32
.This looks similar to #952, but might have a different cause, since essentially every part of the
derive(Clone)
output gets assigned the span of the tokenClone
.