]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/marker.rs
Rollup merge of #69340 - Centril:self-ctor-normalize, r=nikomatsakis
[rust.git] / src / libcore / marker.rs
index 5c35041249f36e826f0fbf82604ccd476f88d403..2800f11cc01b1ae43600b4e82df2ceac154050e8 100644 (file)
@@ -728,10 +728,7 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
 /// [`pin module`]: ../../std/pin/index.html
 #[stable(feature = "pin", since = "1.33.0")]
 #[rustc_on_unimplemented(
-    on(
-        _Self = "dyn std::future::Future<Output = i32> + std::marker::Send",
-        note = "consider using `Box::pin`",
-    ),
+    on(_Self = "std::future::Future", note = "consider using `Box::pin`",),
     message = "`{Self}` cannot be unpinned"
 )]
 #[lang = "unpin"]