Skip to content

Unions that convert () to a reference don't work #507

Description

@fee1-dead

This came up at #420, see more details there. Basic repro (a copy of MaybeUninit):

// build-pass#[spirv_std::spirv(fragment)]pubfnmain(){unionA{x:(),y:&'static glam::Vec4}let a = A{x:()};}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions