2024-10-22 03:22:57 +00:00
|
|
|
error[E0277]: the trait bound `T: const Tr` is not satisfied
|
2025-03-11 12:08:45 +00:00
|
|
|
--> $DIR/constifconst-call-in-const-position.rs:17:39
|
2022-10-02 06:05:45 +00:00
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | const fn foo<T: [const] Tr>() -> [u8; T::a()] {
|
|
|
|
|
| ^
|
2024-10-22 03:22:57 +00:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `T: const Tr` is not satisfied
|
|
|
|
|
--> $DIR/constifconst-call-in-const-position.rs:18:9
|
|
|
|
|
|
|
|
|
|
|
LL | [0; T::a()]
|
2024-11-24 01:15:04 +00:00
|
|
|
| ^
|
2022-10-02 06:05:45 +00:00
|
|
|
|
2024-10-20 19:49:11 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2022-10-02 06:05:45 +00:00
|
|
|
|
2024-10-22 03:22:57 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|