]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/not-panic/not-panic-safe.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / not-panic / not-panic-safe.stderr
index 1aaf17b1cd86f91a67d7064938c13b3fa81f9b41..b95cd9173e3c0c2991f7781fcbd007a2f05d3a82 100644 (file)
@@ -1,14 +1,16 @@
 error[E0277]: the type `&mut i32` may not be safely transferred across an unwind boundary
   --> $DIR/not-panic-safe.rs:9:5
    |
-LL | fn assert<T: UnwindSafe + ?Sized>() {}
-   |              ---------- required by this bound in `assert`
-...
 LL |     assert::<&mut i32>();
    |     ^^^^^^^^^^^^^^^^^^ `&mut i32` may not be safely transferred across an unwind boundary
    |
    = help: the trait `UnwindSafe` is not implemented for `&mut i32`
    = note: `UnwindSafe` is implemented for `&i32`, but not for `&mut i32`
+note: required by a bound in `assert`
+  --> $DIR/not-panic-safe.rs:6:14
+   |
+LL | fn assert<T: UnwindSafe + ?Sized>() {}
+   |              ^^^^^^^^^^ required by this bound in `assert`
 
 error: aborting due to previous error