]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/expected-boxed-future-isnt-pinned.stderr
Move misplaced comment
[rust.git] / src / test / ui / suggestions / expected-boxed-future-isnt-pinned.stderr
index c4eeb3aaa5709362b769c2ba70f28f0ef00c0edb..f0af37e0cbe8af7e47f7b276e0ceb804c04a9dcf 100644 (file)
@@ -12,10 +12,10 @@ LL |     x
 help: you need to pin and box this expression
    |
 LL |     Box::pin(x)
-   |     ^^^^^^^^^ ^
+   |     +++++++++ +
 
 error[E0308]: mismatched types
-  --> $DIR/expected-boxed-future-isnt-pinned.rs:18:5
+  --> $DIR/expected-boxed-future-isnt-pinned.rs:15:5
    |
 LL | fn bar<F: Future<Output=i32> + Send + 'static>(x: F) -> BoxFuture<'static, i32> {
    |                                                         ----------------------- expected `Pin<Box<(dyn Future<Output = i32> + Send + 'static)>>` because of return type
@@ -40,7 +40,7 @@ LL |     Pin::new(x)
 help: store this in the heap by calling `Box::new`
    |
 LL |     Pin::new(Box::new(x))
-   |              ^^^^^^^^^ ^
+   |              +++++++++ +
 
 error[E0277]: `dyn Future<Output = i32> + Send` cannot be unpinned
   --> $DIR/expected-boxed-future-isnt-pinned.rs:22:5
@@ -87,9 +87,9 @@ LL |   pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
            found opaque type `impl Future`
 help: you need to pin and box this expression
    |
-LL |     Box::pin(async {
+LL ~     Box::pin(async {
 LL |         42
-LL |     })
+LL ~     })
    |
 
 error: aborting due to 6 previous errors