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

16 lines
588 B
Plaintext
Raw Normal View History

2022-07-25 03:17:00 -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();
| ^^^^ 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`.