Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: lcnr <rust@lcnr.de>
  • Loading branch information
compiler-errors and lcnr authored Feb 21, 2025
1 parent f7ee72a commit 7a757b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ui/closures/deduce-from-object-supertrait.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//@ check-pass

// This test checks that we look at consider the super traits of trait objects
// when deducing closure signatures.
trait Foo: Fn(Bar) {}
impl<T> Foo for T where T: Fn(Bar) {}

Expand Down
2 changes: 2 additions & 0 deletions tests/ui/dyn-compatibility/multiple-supers-should-work.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//@ check-pass

// We previously incorrectly deduplicated the list of projection bounds
// of trait objects, causing us to incorrectly reject this code, cc #136458.
trait Sup<T> {
type Assoc;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ check-pass

// Regression test for #126944.
// Step 1: Create two names for a single type: `Thing` and `AlsoThing`

struct Thing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Regression test for #133361.
trait Sup<T> {
type Assoc;
}
Expand Down

0 comments on commit 7a757b7

Please sign in to comment.