rust/tests/ui/typeck/issue-114918/const-in-impl-fn-return-typ...

16 lines
530 B
Plaintext

error[E0308]: mismatched types
--> $DIR/const-in-impl-fn-return-type.rs:15:40
|
LL | fn func<const N: u32>() -> [ (); { () }] {
| ^^ expected `usize`, found `()`
error[E0308]: mismatched types
--> $DIR/const-in-impl-fn-return-type.rs:8:38
|
LL | fn func<const N: u32>() -> [ (); N ];
| ^ expected `usize`, found `u32`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.