summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-40396.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/did_you_mean/issue-40396.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/did_you_mean/issue-40396.stderr')
-rw-r--r--tests/ui/did_you_mean/issue-40396.stderr112
1 files changed, 112 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/issue-40396.stderr b/tests/ui/did_you_mean/issue-40396.stderr
new file mode 100644
index 000000000..d0249efd0
--- /dev/null
+++ b/tests/ui/did_you_mean/issue-40396.stderr
@@ -0,0 +1,112 @@
+error: comparison operators cannot be chained
+ --> $DIR/issue-40396.rs:2:20
+ |
+LL | (0..13).collect<Vec<i32>>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | (0..13).collect::<Vec<i32>>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/issue-40396.rs:5:8
+ |
+LL | Vec<i32>::new();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | Vec::<i32>::new();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/issue-40396.rs:8:20
+ |
+LL | (0..13).collect<Vec<i32>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | (0..13).collect::<Vec<i32>();
+ | ++
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
+ --> $DIR/issue-40396.rs:11:43
+ |
+LL | let x = std::collections::HashMap<i128, i128>::new();
+ | ^ expected one of 8 possible tokens
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | let x = std::collections::HashMap::<i128, i128>::new();
+ | ++
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
+ --> $DIR/issue-40396.rs:15:39
+ |
+LL | std::collections::HashMap<i128, i128>::new()
+ | ^ expected one of 8 possible tokens
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | std::collections::HashMap::<i128, i128>::new()
+ | ++
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
+ --> $DIR/issue-40396.rs:20:39
+ |
+LL | std::collections::HashMap<i128, i128>::new();
+ | ^ expected one of 8 possible tokens
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | std::collections::HashMap::<i128, i128>::new();
+ | ++
+
+error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `,`
+ --> $DIR/issue-40396.rs:25:39
+ |
+LL | std::collections::HashMap<i128, i128>::new(1, 2);
+ | ^ expected one of 8 possible tokens
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | std::collections::HashMap::<i128, i128>::new(1, 2);
+ | ++
+
+error[E0308]: mismatched types
+ --> $DIR/issue-40396.rs:13:17
+ |
+LL | let x: () = 42;
+ | -- ^^ expected `()`, found integer
+ | |
+ | expected due to this
+
+error[E0308]: mismatched types
+ --> $DIR/issue-40396.rs:18:17
+ |
+LL | let x: () = 42;
+ | -- ^^ expected `()`, found integer
+ | |
+ | expected due to this
+
+error[E0308]: mismatched types
+ --> $DIR/issue-40396.rs:22:21
+ |
+LL | let x: () = 42;
+ | -- ^^ expected `()`, found integer
+ | |
+ | expected due to this
+
+error[E0308]: mismatched types
+ --> $DIR/issue-40396.rs:27:21
+ |
+LL | let x: () = 32;
+ | -- ^^ expected `()`, found integer
+ | |
+ | expected due to this
+
+error: aborting due to 11 previous errors
+
+For more information about this error, try `rustc --explain E0308`.