rust/tests/ui/traits/safety-inherent-impl.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
320 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0197]: inherent impls cannot be unsafe
2021-02-08 22:15:45 +00:00
--> $DIR/safety-inherent-impl.rs:5:13
2018-08-08 12:28:26 +00:00
|
LL | unsafe impl SomeStruct {
2020-03-05 23:39:35 +00:00
| ------ ^^^^^^^^^^ inherent impl for this type
| |
| unsafe because of this
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0197`.