1 warning: taking a mutable reference to a `const` item
2 --> $DIR/thir-constparam-temp.rs:14:5
7 = note: each usage of a `const` item creates a new temporary
8 = note: the mutable reference will refer to this temporary, not the original `const` item
9 note: mutable reference created due to call to this method
10 --> $DIR/thir-constparam-temp.rs:10:5
12 LL | fn mut_self(&mut self) {}
13 | ^^^^^^^^^^^^^^^^^^^^^^
14 note: `const` item defined here
15 --> $DIR/thir-constparam-temp.rs:13:8
17 LL | fn foo<const YIKES: Yikes>() {
19 = note: `#[warn(const_item_mutation)]` on by default
21 warning: 1 warning emitted