rust/src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr
2021-07-16 11:54:00 +08:00

10 lines
309 B
Plaintext

error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
--> $DIR/call-const-trait-method-fail.rs:24:5
|
LL | a.plus(b)
| ^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0015`.