]>
Commit | Line | Data |
---|---|---|
5099ac24 | 1 | error[E0277]: the trait bound `T: ~const A` is not satisfied |
ee023bcb | 2 | --> $DIR/issue-88155.rs:8:5 |
5099ac24 FG |
3 | | |
4 | LL | T::assoc() | |
5 | | ^^^^^^^^^^ the trait `~const A` is not implemented for `T` | |
6 | | | |
7 | note: the trait `A` is implemented for `T`, but that implementation is not `const` | |
ee023bcb | 8 | --> $DIR/issue-88155.rs:8:5 |
5099ac24 FG |
9 | | |
10 | LL | T::assoc() | |
11 | | ^^^^^^^^^^ | |
12 | ||
13 | error[E0015]: cannot call non-const fn `<T as A>::assoc` in constant functions | |
ee023bcb | 14 | --> $DIR/issue-88155.rs:8:5 |
94222f64 XL |
15 | | |
16 | LL | T::assoc() | |
17 | | ^^^^^^^^^^ | |
5099ac24 FG |
18 | | |
19 | = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants | |
94222f64 | 20 | |
5099ac24 | 21 | error: aborting due to 2 previous errors |
94222f64 | 22 | |
5099ac24 FG |
23 | Some errors have detailed explanations: E0015, E0277. |
24 | For more information about an error, try `rustc --explain E0015`. |