Skip to content

it return error on some code but rustfmt works well. #30

@asukaminato0721

Description

@asukaminato0721

Input code

type a = Map<Zip<Zip<Zip<Zip<IterMut<'_, f64, Dim<[usize; 2]>>, Iter<'_, f64, Dim<[usize; 2]>>>, Iter<'_, f64, Dim<[usize; 1]>>>, Iter<'_, f64, Dim<[usize; 2]>>>, Iter<'_, bool, {unknown}>>, impl Fn(((((&mut f64, &f64), &f64), &f64), &bool)) -> (&mut f64, &bool, &bool, &bool, &bool)> ;

Output code

type a = Map<
    Zip<
        Zip<
            Zip<
                Zip<IterMut<'_, f64, Dim<[usize; 2]>>, Iter<'_, f64, Dim<[usize; 2]>>>,
                Iter<'_, f64, Dim<[usize; 1]>>,
            >,
            Iter<'_, f64, Dim<[usize; 2]>>,
        >,
        Iter<'_, bool, { unknown }>,
    >,
    impl Fn(((((&mut f64, &f64), &f64), &f64), &bool)) -> (&mut f64, &bool, &bool, &bool, &bool),
>;

Additional context

return error

SyntaxError: Unexpected token, expected "," (1:71)

SyntaxError: Unexpected token, expected "," (1:71)
> 1 | type a = Map<Zip<Zip<Zip<Zip<IterMut<'_, f64, Dim<[usize; 2]>>, Iter<'_, f64, Dim<[usize; 2]>>>, Iter<'_, f64, Dim<[usize; 1]>>>, Iter<'_, f64, Dim<[usize; 2]>>>, Iter<'_, bool, {unknown}>>, impl Fn(((((&mut f64, &f64), &f64), &f64), &bool)) -> (&mut f64, &bool, &bool, &bool, &bool)> ;
    |                                                                       ^

loc: { start: { line: 1, column: 71 } },

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