rust/tests/ui/consts/constifconst-call-in-const-position.stderr

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

16 lines
497 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `T: const Tr` is not satisfied
2024-06-25 08:36:40 +00:00
--> $DIR/constifconst-call-in-const-position.rs:17:38
2022-10-02 06:05:45 +00:00
|
LL | const fn foo<T: ~const Tr>() -> [u8; T::a()] {
| ^^^^^^
error[E0277]: the trait bound `T: const Tr` is not satisfied
--> $DIR/constifconst-call-in-const-position.rs:18:9
|
LL | [0; T::a()]
| ^^^^^^
2022-10-02 06:05:45 +00:00
error: aborting due to 2 previous errors
2022-10-02 06:05:45 +00:00
For more information about this error, try `rustc --explain E0277`.