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 committed Sep 12, 2023
1 parent 36b317b commit d270dde
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 d270dde

Please sign in to comment.