mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
Add regression test for issue 100187
This commit is contained in:
parent
f03ce30962
commit
e6478a3724
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…
Reference in New Issue
Block a user