summaryrefslogtreecommitdiffstats
path: root/tests/ui/mir/thir-constparam-temp.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/mir/thir-constparam-temp.stderr')
-rw-r--r--tests/ui/mir/thir-constparam-temp.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/mir/thir-constparam-temp.stderr b/tests/ui/mir/thir-constparam-temp.stderr
index b77d67e08..d50747e54 100644
--- a/tests/ui/mir/thir-constparam-temp.stderr
+++ b/tests/ui/mir/thir-constparam-temp.stderr
@@ -1,5 +1,5 @@
warning: taking a mutable reference to a `const` item
- --> $DIR/thir-constparam-temp.rs:14:5
+ --> $DIR/thir-constparam-temp.rs:16:5
|
LL | YIKES.mut_self()
| ^^^^^^^^^^^^^^^^
@@ -7,12 +7,12 @@ LL | YIKES.mut_self()
= note: each usage of a `const` item creates a new temporary
= note: the mutable reference will refer to this temporary, not the original `const` item
note: mutable reference created due to call to this method
- --> $DIR/thir-constparam-temp.rs:10:5
+ --> $DIR/thir-constparam-temp.rs:12:5
|
LL | fn mut_self(&mut self) {}
| ^^^^^^^^^^^^^^^^^^^^^^
note: `const` item defined here
- --> $DIR/thir-constparam-temp.rs:13:8
+ --> $DIR/thir-constparam-temp.rs:15:8
|
LL | fn foo<const YIKES: Yikes>() {
| ^^^^^^^^^^^^^^^^^^