Skip to content

Commit

Permalink
Switch note to warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Dec 29, 2020
1 parent a2e5a14 commit 0feff1c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/expressions/array-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ If `b` is 0, the constant item is not evaluated at all. For expressions that
are not a constant item, it is evaluated exactly once, and then the result is
copied `b` times.

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

Warning: In the case where `b` is 0, and `a` is a non-constant item, there is
currently a bug in `rustc` where the value `a` is evaluated but not dropped,
thus causing a leak. See [issue
#74836](https://github.com/rust-lang/rust/issues/74836).

</div>

```rust
[1, 2, 3, 4];
Expand Down

0 comments on commit 0feff1c

Please sign in to comment.