1 error[E0379]: functions in traits cannot be declared const
2 --> $DIR/issue-54954.rs:5:5
4 LL | const fn const_val<T: Sized>() -> usize {
5 | ^^^^^ functions in traits cannot be const
7 error[E0283]: type annotations needed
8 --> $DIR/issue-54954.rs:1:24
10 LL | const ARR_LEN: usize = Tt::const_val::<[i8; 123]>();
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
13 = note: cannot satisfy `_: Tt`
15 error: aborting due to 2 previous errors
17 Some errors have detailed explanations: E0283, E0379.
18 For more information about an error, try `rustc --explain E0283`.