about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-06-02 13:21:18 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-06-02 14:22:14 +0200
commit8b5b6d053a044895fd8a88e2cb3c1e9127b3c7ba (patch)
treed7abc8e7626f4a2d82dd063c2b83f5177b14d943
parent2e527f03d1c6b428cedbea52c1b644c4d0abe1c4 (diff)
downloadrust-8b5b6d053a044895fd8a88e2cb3c1e9127b3c7ba.tar.gz
rust-8b5b6d053a044895fd8a88e2cb3c1e9127b3c7ba.zip
add fixme to improve error matching
-rw-r--r--tests/ui/macros/borrowck-error-in-macro.rs1
-rw-r--r--tests/ui/macros/borrowck-error-in-macro.stderr2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/macros/borrowck-error-in-macro.rs b/tests/ui/macros/borrowck-error-in-macro.rs
index 86ac74cb4c1..fe75188efd2 100644
--- a/tests/ui/macros/borrowck-error-in-macro.rs
+++ b/tests/ui/macros/borrowck-error-in-macro.rs
@@ -1,5 +1,6 @@
 //@ aux-build: borrowck-error-in-macro.rs
 //@ error-pattern: a call in this macro requires a mutable binding due to mutable borrow of `d`
+//FIXME: remove error-pattern (see #141896)
 
 extern crate borrowck_error_in_macro as a;
 
diff --git a/tests/ui/macros/borrowck-error-in-macro.stderr b/tests/ui/macros/borrowck-error-in-macro.stderr
index 3d1e67d9a25..ec0302ee287 100644
--- a/tests/ui/macros/borrowck-error-in-macro.stderr
+++ b/tests/ui/macros/borrowck-error-in-macro.stderr
@@ -1,5 +1,5 @@
 error[E0596]: cannot borrow value as mutable, as it is not declared as mutable
-  --> $DIR/borrowck-error-in-macro.rs:6:1
+  --> $DIR/borrowck-error-in-macro.rs:7:1
    |
 LL | a::ice! {}
    | ^^^^^^^^^^