rust/tests/ui/rfcs/rfc-2632-const-trait-impl/cross-crate.gatednc.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
466 B
Plaintext
Raw Normal View History

2023-08-06 08:20:55 -05:00
error[E0277]: the trait bound `cross_crate::NonConst: ~const cross_crate::MyTrait` is not satisfied
--> $DIR/cross-crate.rs:17:14
2022-07-25 03:17:00 -05:00
|
LL | NonConst.func();
2023-08-06 08:20:55 -05:00
| ^^^^ the trait `cross_crate::MyTrait` is not implemented for `cross_crate::NonConst`
2022-07-25 03:17:00 -05:00
|
2023-08-06 08:20:55 -05:00
= help: the trait `cross_crate::MyTrait` is implemented for `cross_crate::NonConst`
2022-07-25 03:17:00 -05:00
error: aborting due to previous error
2023-08-06 08:20:55 -05:00
For more information about this error, try `rustc --explain E0277`.