2022-07-25 03:17:00 -05:00
|
|
|
error[E0277]: the trait bound `cross_crate::NonConst: cross_crate::MyTrait` is not satisfied
|
2022-12-11 16:49:50 -06:00
|
|
|
--> $DIR/cross-crate.rs:17:14
|
2022-07-25 03:17:00 -05:00
|
|
|
|
|
|
|
|
LL | NonConst.func();
|
2022-12-11 16:49:50 -06:00
|
|
|
| ^^^^ the trait `~const cross_crate::MyTrait` is not implemented for `cross_crate::NonConst`
|
2022-07-25 03:17:00 -05:00
|
|
|
|
|
|
|
|
note: the trait `cross_crate::MyTrait` is implemented for `cross_crate::NonConst`, but that implementation is not `const`
|
2022-08-16 01:27:22 -05:00
|
|
|
--> $DIR/cross-crate.rs:17:5
|
2022-07-25 03:17:00 -05:00
|
|
|
|
|
|
|
|
LL | NonConst.func();
|
2022-08-16 01:27:22 -05:00
|
|
|
| ^^^^^^^^
|
2022-07-25 03:17:00 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|