2018-08-08 14:28:26 +02:00
|
|
|
error[E0197]: inherent impls cannot be unsafe
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trait-safety-inherent-impl.rs:5:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-30 02:42:33 +01:00
|
|
|
LL | unsafe impl SomeStruct {
|
|
|
|
|
| ^-----
|
|
|
|
|
| |
|
|
|
|
|
| _unsafe because of this
|
|
|
|
|
| |
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | | fn foo(self) { }
|
|
|
|
|
LL | | }
|
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0197`.
|