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

lang: Cant build with CPI enabled with empty context struct #1628

Open
tomlinton opened this issue Mar 16, 2022 · 0 comments · May be fixed by #1659
Open

lang: Cant build with CPI enabled with empty context struct #1628

tomlinton opened this issue Mar 16, 2022 · 0 comments · May be fixed by #1659
Assignees
Labels
bug Something isn't working

Comments

@tomlinton
Copy link
Contributor

E.g. cargo build-bpf --features cpi in tutorials/basic-0/programs/basic-0 leads to:

error[E0107]: this struct takes 0 lifetime arguments but 1 lifetime argument was supplied
  --> programs/basic-0/src/lib.rs:5:1
   |
5  | #[program]
   | ^^^^^^^^^^- help: remove these generics
   | |
   | expected 0 lifetime arguments
   |

#1598 is passing an account for no reason to avoid this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants