2016-07-13 17:53:42 -04:00
error[E0321]: cross-crate traits with a default impl, like `std::marker::Send`, can only be implemented for a struct/enum type, not `&'static main::Foo`
2018-12-25 08:56:47 -07:00
--> $DIR/empty_span.rs:7:5
2016-07-13 17:53:42 -04:00
|
2019-03-09 15:03:44 +03:00
LL | unsafe impl Send for &'static Foo { }
2018-03-14 19:10:28 -07:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
2016-07-13 17:53:42 -04:00
2017-07-02 13:49:30 +03:00
error: aborting due to previous error
2016-07-13 17:53:42 -04:00
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0321`.