fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
553 B16 linesraw
1error[E0379]: trait fns cannot be declared const
2  --> $DIR/issue-54954.rs:7:5
3   |
4LL |     const fn const_val<T: Sized>() -> usize {
5   |     ^^^^^ trait fns cannot be const
6
7error[E0019]: constant contains unimplemented expression type
8  --> $DIR/issue-54954.rs:3:24
9   |
10LL | const ARR_LEN: usize = Tt::const_val::<[i8; 123]>();
11   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0019, E0379.
16For more information about an error, try `rustc --explain E0019`.