Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjust super_predicates_that_define_assoc_type query description
- Loading branch information
1 parent
6ab8fe2
commit b916ac6
Showing
8 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/test/ui/associated-type-bounds/ambiguous-associated-type2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// ignore-tidy-linelength | ||
|
||
trait Foo { | ||
type Item; | ||
} | ||
trait Bar<T> { | ||
type Item; | ||
} | ||
trait Baz: Foo + Bar<Self::Item> {} | ||
//~^ ERROR cycle detected when computing the supertraits of `Baz` [E0391] | ||
//~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391] | ||
|
||
fn main() {} |
10 changes: 5 additions & 5 deletions
10
src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters