mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
588 B
Plaintext
16 lines
588 B
Plaintext
error[E0277]: the trait bound `cross_crate::NonConst: ~const cross_crate::MyTrait` is not satisfied
|
|
--> $DIR/cross-crate.rs:17:14
|
|
|
|
|
LL | NonConst.func();
|
|
| ^^^^ the trait `~const cross_crate::MyTrait` is not implemented for `cross_crate::NonConst`
|
|
|
|
|
note: the trait `cross_crate::MyTrait` is implemented for `cross_crate::NonConst`, but that implementation is not `const`
|
|
--> $DIR/cross-crate.rs:17:5
|
|
|
|
|
LL | NonConst.func();
|
|
| ^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|