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