Skip to content

Add support for generics #12

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

Merged
merged 5 commits into from
Mar 22, 2025
Merged

Add support for generics #12

merged 5 commits into from
Mar 22, 2025

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Mar 8, 2025

The commits tell a story. First adds a failing test, the second fixes it.

schneems added 3 commits March 8, 2025 10:26
```
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0107]: missing generics for struct `Example`
 --> tests/pass/struct_with_generics.rs:4:8
  |
4 | struct Example<T>
  |        ^^^^^^^ expected 1 generic argument
  |
note: struct defined here, with 1 generic parameter: `T`
 --> tests/pass/struct_with_generics.rs:4:8
  |
4 | struct Example<T>
  |        ^^^^^^^ -
help: add missing generic argument
  |
4 | struct Example<T><T>
  |               +++
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
```
@schneems schneems marked this pull request as ready for review March 8, 2025 16:38
@schneems schneems requested a review from a team as a code owner March 8, 2025 16:38
@schneems schneems enabled auto-merge (squash) March 10, 2025 19:49
@schneems schneems merged commit c6bec0a into main Mar 22, 2025
4 checks passed
@schneems schneems deleted the schneems/fix-generics branch March 22, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants