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

Feature/Trait Parser cant parse arguments with generic args as generic arguments #9

Open
LukasSiefke opened this issue Aug 16, 2022 · 0 comments

Comments

@LukasSiefke
Copy link

LukasSiefke commented Aug 16, 2022

This test fails:

descend/src/parser/mod.rs

Lines 2958 to 2964 in 202da65

#[test]
#[ignore] //TODO Dont work
fn test_pass_arg_kinded_with_generics() {
let src = "let x = Point::<42, Point2<T>> { x: 42, x: 43}";
descend::expr_helper(src).expect("Cannot parse struct initialization");
}

The error message is:
thread 'parser::tests::test_pass_arg_kinded_with_generics' panicked at 'Cannot parse struct initialization: ParseError { location: LineCol { line: 1, column: 27, offset: 26 }, expected: ExpectedSet { expected: {"">"", "'a' ..= 'z' | 'A' ..= 'Z' | '0' ..= '9' | '_'", "",""} } }', src/parser/mod.rs:2940:35

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