summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/auxiliary')
-rw-r--r--tests/ui/suggestions/auxiliary/extern-issue-98562.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/suggestions/auxiliary/extern-issue-98562.rs b/tests/ui/suggestions/auxiliary/extern-issue-98562.rs
new file mode 100644
index 000000000..948e40549
--- /dev/null
+++ b/tests/ui/suggestions/auxiliary/extern-issue-98562.rs
@@ -0,0 +1,26 @@
+pub trait TraitE {
+ type I3;
+}
+
+pub trait TraitD {
+ type I3;
+}
+
+pub trait TraitC {
+ type I1;
+ type I2;
+}
+
+pub trait TraitB {
+ type Item;
+}
+
+pub trait TraitA<G1, G2, G3> {
+ fn baz<
+ U: TraitC<I1 = G1, I2 = G2> + TraitD<I3 = G3> + TraitE,
+ V: TraitD<I3 = G1>
+ >(_: U, _: V) -> Self
+ where
+ U: TraitB,
+ <U as TraitB>::Item: Copy;
+}