Skip to content

array_vec! macro cannot work with tuple element #164

Description

@YoshieraHuang

This expression tries to construct an ArrayVec with element type (f32, f32) but cannot compile:

let a: ArrayVec<[(f32,f32); 3]> = array_vec!((2.0, 2.0), (2.0, 2.0), (2.0, 2.0));

The error goes like:

expected type, found `2.0`
expected type

Meanwhile, the vec! macro can handle this well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions