diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-01 18:43:47 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-11 21:38:54 +0000 |
| commit | 2024aa48b4e92894e6f780a13c03db7605e1a5f2 (patch) | |
| tree | 5dfeab33080b82ef4d5bc8baf2a5ff8588734ad4 /tests/ui/not-panic | |
| parent | b22c152958eade17a71d899b29a2d39bcc77aa48 (diff) | |
| download | rust-2024aa48b4e92894e6f780a13c03db7605e1a5f2.tar.gz rust-2024aa48b4e92894e6f780a13c03db7605e1a5f2.zip | |
Make `&`-removal suggestion verbose
Diffstat (limited to 'tests/ui/not-panic')
| -rw-r--r-- | tests/ui/not-panic/not-panic-safe.stderr | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ui/not-panic/not-panic-safe.stderr b/tests/ui/not-panic/not-panic-safe.stderr index 2cd51a43998..013c5ee7044 100644 --- a/tests/ui/not-panic/not-panic-safe.stderr +++ b/tests/ui/not-panic/not-panic-safe.stderr @@ -2,10 +2,7 @@ error[E0277]: the type `&mut i32` may not be safely transferred across an unwind --> $DIR/not-panic-safe.rs:8:14 | LL | assert::<&mut i32>(); - | -^^^^^^^ - | | - | `&mut i32` may not be safely transferred across an unwind boundary - | help: consider removing the leading `&`-reference + | ^^^^^^^^ `&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` |
