Skip to content

Commit e438529

Browse files
ayazhafizcalebcartwright
authored andcommitted
Add test for generic bounds on associated types
This was fixed in 1e9af9f but it seems that a test was never added. Closes #4315
1 parent 2c39e80 commit e438529

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/source/where-clause.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
5656
// ...
5757
}
5858
}
59+
60+
// #4315
61+
pub trait AsUnindented {
62+
type Output<'ast> where Self: 'ast;
63+
}

tests/target/where-clause.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,8 @@ impl<'a, 'gcx, 'tcx> ProbeContext<'a, 'gcx, 'tcx> {
105105
// ...
106106
}
107107
}
108+
109+
// #4315
110+
pub trait AsUnindented {
111+
type Output<'ast> where Self: 'ast;
112+
}

0 commit comments

Comments
 (0)