about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/async-example-desugared-extra.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-extra.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-extra.rs')
-rw-r--r--tests/ui/async-await/in-trait/async-example-desugared-extra.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/async-await/in-trait/async-example-desugared-extra.rs b/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
index 81e1e59a362..1bbf4836a2a 100644
--- a/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
+++ b/tests/ui/async-await/in-trait/async-example-desugared-extra.rs
@@ -27,8 +27,7 @@ impl Future for MyFuture {
 }
 
 impl MyTrait for i32 {
-    // FIXME: this should eventually require `#[refine]` to compile, because it also provides
-    // `Clone`.
+    #[allow(refining_impl_trait)]
     fn foo(&self) -> impl Future<Output = i32> + Clone {
         MyFuture(*self)
     }