]> git.lizzy.rs Git - rust.git/blob - src/test/ui/codemap_tests/empty_span.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / codemap_tests / empty_span.stderr
1 error[E0321]: cross-crate traits with a default impl, like `Send`, can only be implemented for a struct/enum type, not `&'static Foo`
2   --> $DIR/empty_span.rs:7:5
3    |
4 LL |     unsafe impl Send for &'static Foo { }
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0321`.