summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr')
-rw-r--r--tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr53
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr b/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
new file mode 100644
index 000000000..9588eedc9
--- /dev/null
+++ b/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr
@@ -0,0 +1,53 @@
+error: expected item, found `;`
+ --> $DIR/recover-from-semicolon-trailing-item.rs:2:9
+ |
+LL | mod M {};
+ | ^ help: remove this semicolon
+
+error: expected item, found `;`
+ --> $DIR/recover-from-semicolon-trailing-item.rs:4:12
+ |
+LL | struct S {};
+ | ^ help: remove this semicolon
+ |
+ = help: braced struct declarations are not followed by a semicolon
+
+error: expected item, found `;`
+ --> $DIR/recover-from-semicolon-trailing-item.rs:6:20
+ |
+LL | fn foo(a: usize) {};
+ | ^ help: remove this semicolon
+
+error[E0308]: mismatched types
+ --> $DIR/recover-from-semicolon-trailing-item.rs:10:20
+ |
+LL | let _: usize = S {};
+ | ----- ^^^^ expected `usize`, found struct `S`
+ | |
+ | expected due to this
+
+error[E0308]: mismatched types
+ --> $DIR/recover-from-semicolon-trailing-item.rs:12:20
+ |
+LL | let _: usize = X {};
+ | ----- ^^^^ expected `usize`, found struct `X`
+ | |
+ | expected due to this
+
+error[E0308]: mismatched types
+ --> $DIR/recover-from-semicolon-trailing-item.rs:14:9
+ |
+LL | foo("");
+ | --- ^^ expected `usize`, found `&str`
+ | |
+ | arguments to this function are incorrect
+ |
+note: function defined here
+ --> $DIR/recover-from-semicolon-trailing-item.rs:6:4
+ |
+LL | fn foo(a: usize) {};
+ | ^^^ --------
+
+error: aborting due to 6 previous errors
+
+For more information about this error, try `rustc --explain E0308`.