#[derive(Template)] get error

error[E0369]: cannot subtract {integer} from &&usize
--> src/codegen/template.rs:24:10
|
24 | #[derive(Template)]
| ^^^^^^^^
|
= note: this error originates in the derive macro Template (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try rustc --explain E0369.
error: could not compile halo2_solidity_verifier (lib) due to previous error
[root@C20231213136078 halo2-solidity-verifier]# rustc --explain E0369

Two points:

  1. There is a post pinned at the top of the this forum on how to format code (which you should also use for error messages).

  2. It is unlikely anyone can help you when you don't post the code. When you ask someone for help, remember that they cannot read your mind. Anything you don't tell them will only make it less likely they can help you.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.