Add regression test for issue 100187
This commit is contained in:
parent
f03ce30962
commit
e6478a3724
1 changed files with 12 additions and 0 deletions
12
src/test/ui/impl-trait/issue-100187.rs
Normal file
12
src/test/ui/impl-trait/issue-100187.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
|
||||
trait Trait<T> {
|
||||
type Ty;
|
||||
}
|
||||
impl Trait<&u8> for () {
|
||||
type Ty = ();
|
||||
}
|
||||
|
||||
fn test<'a, 'b>() -> impl Trait<&'a u8, Ty = impl Sized + 'b> {}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue