You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at program_structure/src/program_library/program_archive.rs:78:9:
assertion failed: self.contains_template(template_name)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expectation:
The input file contains an error, attempting to use a function as the main template. This should result in a semantic error with a helpful error message instead of just the rust assertion failure message.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue, we solved it in our last release (circom 2.1.9).
Now the compiler returns the following error:
error[T2053]: Typing error found
┌─ "empty.circom":4:18
│
4 │ component main = foo(2, 3);
│ ^^^^^^^^^ Invalid main component: the main component should be a template, not a function call or expression
Input file (example.circom):
Command:
Outcome:
Expectation:
The input file contains an error, attempting to use a function as the main template. This should result in a semantic error with a helpful error message instead of just the rust assertion failure message.
The text was updated successfully, but these errors were encountered: