]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0199.stderr
Rollup merge of #103283 - nbarrios1337:unsafe-impl-suggestions, r=cjgillot
[rust.git] / src / test / ui / error-codes / E0199.stderr
index 3632d26cd32e5f22ca25511c33ecdba8cfca4414..99d808c0d4b1e115947acdbf76c2e9f55f23b19c 100644 (file)
@@ -3,6 +3,12 @@ error[E0199]: implementing the trait `Bar` is not unsafe
    |
 LL | unsafe impl Bar for Foo { }
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+help: remove `unsafe` from this trait implementation
+   |
+LL - unsafe impl Bar for Foo { }
+LL + impl Bar for Foo { }
+   |
 
 error: aborting due to previous error