Skip to content

Commit 0feff1c

Browse files
committed
Switch note to warning.
1 parent a2e5a14 commit 0feff1c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/expressions/array-expr.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ If `b` is 0, the constant item is not evaluated at all. For expressions that
2626
are not a constant item, it is evaluated exactly once, and then the result is
2727
copied `b` times.
2828

29-
> **Note:** In the case where `b` is 0, and `a` is a non-constant item, there
30-
> is currently a bug in `rustc` where the value `a` is evaluated but not
31-
> dropped, thus causing a leak. See [issue
32-
> #74836](https://github.com/rust-lang/rust/issues/74836).
29+
<div class="warning">
30+
31+
Warning: In the case where `b` is 0, and `a` is a non-constant item, there is
32+
currently a bug in `rustc` where the value `a` is evaluated but not dropped,
33+
thus causing a leak. See [issue
34+
#74836](https://github.com/rust-lang/rust/issues/74836).
35+
36+
</div>
3337

3438
```rust
3539
[1, 2, 3, 4];

0 commit comments

Comments
 (0)