fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: taking a mutable reference to a `const` item 2 --> $DIR/thir-constparam-temp.rs:16:5 3 | 4LL | YIKES.mut_self() 5 | ^^^^^^^^^^^^^^^^ 6 | 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 9note: mutable reference created due to call to this method 10 --> $DIR/thir-constparam-temp.rs:12:5 11 | 12LL | fn mut_self(&mut self) {} 13 | ^^^^^^^^^^^^^^^^^^^^^^ 14note: `const` item defined here 15 --> $DIR/thir-constparam-temp.rs:15:8 16 | 17LL | fn foo<const YIKES: Yikes>() { 18 | ^^^^^^^^^^^^^^^^^^ 19 = note: `#[warn(const_item_mutation)]` on by default 20 21warning: 1 warning emitted 22