summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-move-types.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/suggestions/suggest-move-types.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/suggestions/suggest-move-types.stderr')
-rw-r--r--src/test/ui/suggestions/suggest-move-types.stderr137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/suggest-move-types.stderr b/src/test/ui/suggestions/suggest-move-types.stderr
new file mode 100644
index 000000000..1a6032db0
--- /dev/null
+++ b/src/test/ui/suggestions/suggest-move-types.stderr
@@ -0,0 +1,137 @@
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:26:26
+ |
+LL | struct A<T, M: One<A=(), T>> {
+ | ---- ^ generic argument
+ | |
+ | constraint
+ |
+help: move the constraint after the generic argument
+ |
+LL | struct A<T, M: One<T, A = ()>> {
+ | ~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:33:43
+ |
+LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
+ | ---- ^ ^^ generic arguments
+ | |
+ | constraint
+ |
+help: move the constraint after the generic arguments
+ |
+LL | struct Al<'a, T, M: OneWithLifetime<'a, T, A = ()>> {
+ | ~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:40:46
+ |
+LL | struct B<T, U, V, M: Three<A=(), B=(), C=(), T, U, V>> {
+ | ---- ---- ---- ^ ^ ^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct B<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:48:71
+ |
+LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
+ | ---- ---- ---- ^ ^ ^ ^^ ^^ ^^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:57:28
+ |
+LL | struct C<T, U, V, M: Three<T, A=(), B=(), C=(), U, V>> {
+ | ^ ---- ---- ---- ^ ^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct C<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:65:53
+ |
+LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
+ | ^ ^^ ---- ---- ---- ^ ^^ ^ ^^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:74:28
+ |
+LL | struct D<T, U, V, M: Three<T, A=(), B=(), U, C=(), V>> {
+ | ^ ---- ---- ^ ---- ^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct D<T, U, V, M: Three<T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error: generic arguments must come before the first constraint
+ --> $DIR/suggest-move-types.rs:82:53
+ |
+LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
+ | ^ ^^ ---- ---- ^ ^^ ---- ^ ^^ generic arguments
+ | |
+ | constraints
+ |
+help: move the constraints after the generic arguments
+ |
+LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<'a, 'b, 'c, T, U, V, A = (), B = (), C = ()>> {
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+error[E0747]: type provided when a lifetime was expected
+ --> $DIR/suggest-move-types.rs:33:43
+ |
+LL | struct Al<'a, T, M: OneWithLifetime<A=(), T, 'a>> {
+ | ^
+
+error[E0747]: type provided when a lifetime was expected
+ --> $DIR/suggest-move-types.rs:48:71
+ |
+LL | struct Bl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<A=(), B=(), C=(), T, U, V, 'a, 'b, 'c>> {
+ | ^
+
+error[E0747]: lifetime provided when a type was expected
+ --> $DIR/suggest-move-types.rs:65:56
+ |
+LL | struct Cl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), C=(), U, 'b, V, 'c>> {
+ | ^^
+ |
+ = note: lifetime arguments must be provided before type arguments
+ = help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>`
+
+error[E0747]: lifetime provided when a type was expected
+ --> $DIR/suggest-move-types.rs:82:56
+ |
+LL | struct Dl<'a, 'b, 'c, T, U, V, M: ThreeWithLifetime<T, 'a, A=(), B=(), U, 'b, C=(), V, 'c>> {
+ | ^^
+ |
+ = note: lifetime arguments must be provided before type arguments
+ = help: reorder the arguments: lifetimes, then types: `<'a, 'b, 'c, T, U, V>`
+
+error: aborting due to 12 previous errors
+
+For more information about this error, try `rustc --explain E0747`.