summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-ref-dyn-mut.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
commit018c4950b9406055dec02ef0fb52f132e2bb1e2c (patch)
treea835ebdf2088ef88fa681f8fad45f09922c1ae9a /tests/ui/parser/recover-ref-dyn-mut.rs
parentAdding debian version 1.75.0+dfsg1-5. (diff)
downloadrustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.tar.xz
rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/parser/recover-ref-dyn-mut.rs')
-rw-r--r--tests/ui/parser/recover-ref-dyn-mut.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/ui/parser/recover-ref-dyn-mut.rs b/tests/ui/parser/recover-ref-dyn-mut.rs
deleted file mode 100644
index 3016275cc..000000000
--- a/tests/ui/parser/recover-ref-dyn-mut.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Test that the parser detects `&dyn mut`, offers a help message, and
-// recovers.
-
-fn main() {
- let r: &dyn mut Trait;
- //~^ ERROR: `mut` must precede `dyn`
- //~| HELP: place `mut` before `dyn`
- //~| ERROR: cannot find trait `Trait` in this scope [E0405]
-}