1 error[E0277]: the trait bound `cross_crate::NonConst: cross_crate::MyTrait` is not satisfied
2 --> $DIR/cross-crate.rs:17:14
5 | ^^^^ the trait `~const cross_crate::MyTrait` is not implemented for `cross_crate::NonConst`
7 note: the trait `cross_crate::MyTrait` is implemented for `cross_crate::NonConst`, but that implementation is not `const`
8 --> $DIR/cross-crate.rs:17:14
12 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
14 LL | const fn const_context() where cross_crate::NonConst: ~const cross_crate::MyTrait {
15 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.