Skip to content

Commit 9fe55ae

Browse files
committed
asd
1 parent bd714f6 commit 9fe55ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/generics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The only allowed types of const parameters are `u8`, `u16`, `u32`, `u64`, `u128`
4949
Const parameters may only be be used as standalone arguments inside
5050
of [types] and [repeat expressions] but may be freely used elsewhere:
5151

52-
```rust
52+
```rust,should_panic
5353
// ok: standalone argument
5454
fn foo<const N: usize>() -> [u8; N] { todo!() }
5555

0 commit comments

Comments
 (0)