1 error[E0308]: mismatched types
2 --> $DIR/const-in-fn-return-type.rs:6:21
4 LL | fn func() -> [u8; { () } ] {
5 | ^^ expected `usize`, found `()`
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0308`.