Files
rust/tests/ui/traits/const-traits/issue-88155.stderr

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

12 lines
394 B
Plaintext
Raw Normal View History

2024-12-23 21:49:48 +00:00
error[E0015]: cannot call non-const associated function `<T as A>::assoc` in constant functions
2023-07-27 15:51:02 +00:00
--> $DIR/issue-88155.rs:10:5
2021-08-26 17:58:28 +00:00
|
LL | T::assoc()
| ^^^^^^^^^^
2021-12-10 01:10:05 +08:00
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2021-08-26 17:58:28 +00:00
error: aborting due to 1 previous error
2021-08-26 17:58:28 +00:00
2023-07-27 15:51:02 +00:00
For more information about this error, try `rustc --explain E0015`.