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

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

13 lines
497 B
Plaintext
Raw Normal View History

2021-12-09 11:10:05 -06:00
error[E0015]: cannot call non-const fn `<cross_crate::Const as cross_crate::MyTrait>::func` in constant functions
2022-07-25 03:17:00 -05:00
--> $DIR/cross-crate.rs:20:11
|
LL | Const.func();
2021-12-09 11:10:05 -06:00
| ^^^^^^
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2022-12-22 12:15:15 -06:00
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
2022-07-25 03:17:00 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0015`.