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