When determining when a function or method can be called from a `const` context, the determination must be made on the instance, not on the declaration. This makes a difference, for example, with `const_trait` traits whose implementations may or may not be `const`. |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| cant_be_const.rs | ||
| const_trait.fixed | ||
| const_trait.rs | ||
| const_trait.stderr | ||
| could_be_const.fixed | ||
| could_be_const.rs | ||
| could_be_const.stderr | ||