]> git.lizzy.rs Git - rust.git/blob - 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
1 error[E0199]: implementing the trait `Bar` is not unsafe
2   --> $DIR/E0199.rs:6:1
3    |
4 LL | unsafe impl Bar for Foo { }
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 help: remove `unsafe` from this trait implementation
8    |
9 LL - unsafe impl Bar for Foo { }
10 LL + impl Bar for Foo { }
11    |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0199`.