use impl trait in grammar paramater
#872
AphrosDelos532
started this conversation in
General
Replies: 1 comment
-
|
Yes, unfortunately grammar parameters are incomplete in their handling of more advanced rust functionality. See this similar issue: #134 Please open an issue and we would be very interested in pr's on this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about a simplified version of my project. Below is the project structure.
├── Cargo.lock ├── Cargo.toml └── src ├── grammar.lalrpop ├── main.rs └── traits.rsThe
traits.rsfile contains the following content. I have defined and exposed atraitnamedAccessCache.However, when I attempt to add it to the
parser, I encounter the following error:Caused by: process didn't exit successfully: `.../build-script-build` (exit status: 1) --- stdout processing file `src/parser/parser.lalrpop` src/parser/parser.lalrpop:17:21: 17:31 error: unexpected token: `AccessCache` --- stderr grammar(pool: &impl AccessCache); ~~~~~~~~~~~However, I can use it well in other Rust functions. I'm puzzled. Is it not possible to use it in this way?
Beta Was this translation helpful? Give feedback.
All reactions