2024-04-14 13:21:38 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/value-suggestion-ice-123906.rs:3:9
|
|
|
|
|
|
|
|
|
LL | fn as_chunks<const N: usize>() -> [u8; N] {
|
2024-04-14 14:26:59 +00:00
|
|
|
| ------- expected `[u8; N]` because of this return type
|
2024-04-14 13:21:38 +00:00
|
|
|
LL | loop {
|
|
|
|
| ---- this loop is expected to be of type `[u8; N]`
|
|
|
|
LL | break;
|
|
|
|
| ^^^^^ expected `[u8; N]`, found `()`
|
|
|
|
|
|
|
|
|
help: give the `break` a value of the expected type
|
|
|
|
|
|
2024-04-16 01:36:52 +00:00
|
|
|
LL | break /* value */;
|
|
|
|
| +++++++++++
|
2024-04-14 13:21:38 +00:00
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|