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

Providing an incorrect number of type arguments to a struct expression delivers an unhelpful error message #1101

Closed
emilyaherbert opened this issue Mar 30, 2022 · 0 comments · Fixed by #1102
Assignees
Labels
bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged

Comments

@emilyaherbert
Copy link
Contributor

It gives this:

  --> disallow_turbofish/src/main.sw:13:1
   |
11 |   
12 |   
13 | / struct Result<T, E> {
14 | |   yes: T,
15 | |   no: E
16 | | }
   | |_^ Expected 2 type arguments, but instead found 1.
17 |   
18 |   fn main() {
   |
@emilyaherbert emilyaherbert self-assigned this Mar 30, 2022
@emilyaherbert emilyaherbert added bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged labels Mar 30, 2022
@adlerjohn adlerjohn moved this to Todo in Fuel Network Mar 30, 2022
@adlerjohn adlerjohn moved this from Todo to Done in Fuel Network Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler General compiler. Should eventually become more specific as the issue is triaged
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant