about summary refs log tree commit diff
path: root/tests/ui/consts/constifconst-call-in-const-position.stderr
blob: e84e686251a5b96ea4d468836f4975976e8095f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: the trait bound `T: const Tr` is not satisfied
  --> $DIR/constifconst-call-in-const-position.rs:17:39
   |
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()]
   |         ^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0277`.