1
Fork 0

don't let const_fn feature flag affect impl-block-level trait bounds

This commit is contained in:
Ralf Jung 2021-04-25 18:42:53 +02:00
parent ada102456d
commit 9a852776f4
11 changed files with 9 additions and 21 deletions

View file

@ -1,5 +1,5 @@
error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
--> $DIR/call-const-trait-method-fail.rs:26:5
--> $DIR/call-const-trait-method-fail.rs:25:5
|
LL | a.plus(b)
| ^^^^^^^^^