Skip to content

Commit

Permalink
Add trait self test with 2 different types
Browse files Browse the repository at this point in the history
  • Loading branch information
ymadzhunkov authored and alexvitkov committed Sep 18, 2023
1 parent 0a42c78 commit 40052a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl ATrait for Bar {
// The trait method is declared as returning `Self`
// but explicitly specifying the type in the impl should work
fn asd() -> Bar {
Foo{x: 100}
Bar{x: 100}
}
}

Expand Down

0 comments on commit 40052a9

Please sign in to comment.