about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/async-example-desugared.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-09-02 04:02:11 +0000
committerMichael Goulet <michael@errs.io>2023-09-07 00:49:09 +0000
commite10262ca0aa2ff434b33898d1d03413fdde60edf (patch)
tree2ae53a01dc25e3c04aa6a7f0e1c7254a1142d8e5 /tests/ui/async-await/in-trait/async-example-desugared.rs
parentb0d45536acf8be99036c6a1261359e3cf89f9d63 (diff)
downloadrust-e10262ca0aa2ff434b33898d1d03413fdde60edf.tar.gz
rust-e10262ca0aa2ff434b33898d1d03413fdde60edf.zip
Implement refinement lint for RPITIT
Diffstat (limited to 'tests/ui/async-await/in-trait/async-example-desugared.rs')
-rw-r--r--tests/ui/async-await/in-trait/async-example-desugared.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/async-await/in-trait/async-example-desugared.rs b/tests/ui/async-await/in-trait/async-example-desugared.rs
index fb92ec78674..0a5023176fe 100644
--- a/tests/ui/async-await/in-trait/async-example-desugared.rs
+++ b/tests/ui/async-await/in-trait/async-example-desugared.rs
@@ -12,7 +12,7 @@ trait MyTrait {
 }
 
 impl MyTrait for i32 {
-    fn foo(&self) -> impl Future<Output = i32> + '_ {
+    fn foo(&self) -> impl Future<Output = i32> {
         async { *self }
     }
 }