blob: 3889efe1f2a3cb2fac7d37445ba81f4da7c87c5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ edition:2021
trait MyTrait<'a, 'b, T> {
async fn foo(&'a self, key: &'b T) -> (&'a ConnImpl, &'b T);
//~^ ERROR: cannot find type `ConnImpl` in this scope [E0412]
}
impl<'a, 'b, T, U> MyTrait<T> for U {
//~^ ERROR: implicit elided lifetime not allowed here [E0726]
async fn foo(_: T) -> (&'a U, &'b T) {}
//~^ ERROR: mismatched types [E0308]
}
fn main() {}
|