]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/bugs/issue-87748.rs
Auto merge of #91403 - cjgillot:inherit-async, r=oli-obk
[rust.git] / src / test / ui / generic-associated-types / bugs / issue-87748.rs
1 // check-fail
2
3 // This should pass, but unnormalized input args aren't treated as implied.
4
5 #![feature(generic_associated_types)]
6
7 trait MyTrait {
8     type Assoc<'a, 'b> where 'b: 'a;
9     fn do_sth(arg: Self::Assoc<'_, '_>);
10 }
11
12 struct Foo;
13
14 impl MyTrait for Foo {
15     type Assoc<'a, 'b> where 'b: 'a = u32;
16
17     fn do_sth(_: u32) {} //~ lifetime bound
18     // fn do_sth(_: Self::Assoc<'static, 'static>) {}
19     // fn do_sth(_: Self::Assoc<'_, '_>) {}
20 }
21
22 fn main() {}