rust/src/test/ui/codemap_tests/empty_span.stderr

10 lines
513 B
Plaintext
Raw Normal View History

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 15:56:47 +00:00
--> $DIR/empty_span.rs:7:5
|
2018-02-23 00:42:32 +00:00
LL | unsafe impl Send for &'static Foo { } //~ ERROR cross-crate traits with a default impl
2018-03-15 02:10:28 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0321`.