diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-31 15:31:31 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-08-31 15:35:42 +0300 |
| commit | a9b959a020cc156ef57a972c83381aabc43b1174 (patch) | |
| tree | 773f3d22225d40e5246c64f1b11481009a6a1319 /tests/ui/self/self_lifetime-async.rs | |
| parent | f7b0b221373e7de22191fccbced9942a21af924f (diff) | |
| download | rust-a9b959a020cc156ef57a972c83381aabc43b1174.tar.gz rust-a9b959a020cc156ef57a972c83381aabc43b1174.zip | |
elided_named_lifetimes: bless & add tests
Diffstat (limited to 'tests/ui/self/self_lifetime-async.rs')
| -rw-r--r-- | tests/ui/self/self_lifetime-async.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/self/self_lifetime-async.rs b/tests/ui/self/self_lifetime-async.rs index 7d6eb3f5eaf..fd690207118 100644 --- a/tests/ui/self/self_lifetime-async.rs +++ b/tests/ui/self/self_lifetime-async.rs @@ -4,11 +4,13 @@ struct Foo<'a>(&'a ()); impl<'a> Foo<'a> { async fn foo<'b>(self: &'b Foo<'a>) -> &() { self.0 } + //~^ WARNING elided lifetime has a name } type Alias = Foo<'static>; impl Alias { async fn bar<'a>(self: &Alias, arg: &'a ()) -> &() { arg } + //~^ WARNING elided lifetime has a name } fn main() {} |
