Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asukaminato0721 opened this issue Sep 1, 2023 · 0 comments
Open

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

asukaminato0721 opened this issue Sep 1, 2023 · 0 comments

Comments

@asukaminato0721
Copy link

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 } },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant