summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr')
-rw-r--r--src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr140
1 files changed, 140 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr b/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
new file mode 100644
index 000000000..a6825b845
--- /dev/null
+++ b/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr
@@ -0,0 +1,140 @@
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:6:8
+ |
+LL | foo<BAR + 3>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR + 3>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:9:8
+ |
+LL | foo<BAR + BAR>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR + BAR>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:12:8
+ |
+LL | foo<3 + 3>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<3 + 3>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:15:8
+ |
+LL | foo<BAR - 3>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR - 3>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:18:8
+ |
+LL | foo<BAR - BAR>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR - BAR>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:21:8
+ |
+LL | foo<100 - BAR>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<100 - BAR>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:8
+ |
+LL | foo<bar<i32>()>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<bar<i32>()>();
+ | ++
+
+error: expected one of `;` or `}`, found `>`
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:24:19
+ |
+LL | foo<bar<i32>()>();
+ | ^ expected one of `;` or `}`
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:28:8
+ |
+LL | foo<bar::<i32>()>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<bar::<i32>()>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:31:8
+ |
+LL | foo<bar::<i32>() + BAR>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<bar::<i32>() + BAR>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:34:8
+ |
+LL | foo<bar::<i32>() - BAR>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<bar::<i32>() - BAR>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:37:8
+ |
+LL | foo<BAR - bar::<i32>()>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR - bar::<i32>()>();
+ | ++
+
+error: comparison operators cannot be chained
+ --> $DIR/const-expression-suggest-missing-braces-without-turbofish.rs:40:8
+ |
+LL | foo<BAR - bar::<i32>()>();
+ | ^ ^
+ |
+help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
+ |
+LL | foo::<BAR - bar::<i32>()>();
+ | ++
+
+error: aborting due to 13 previous errors
+