summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/struct-enum-wrong-args.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 /src/test/ui/typeck/struct-enum-wrong-args.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 'src/test/ui/typeck/struct-enum-wrong-args.stderr')
-rw-r--r--src/test/ui/typeck/struct-enum-wrong-args.stderr133
1 files changed, 0 insertions, 133 deletions
diff --git a/src/test/ui/typeck/struct-enum-wrong-args.stderr b/src/test/ui/typeck/struct-enum-wrong-args.stderr
deleted file mode 100644
index ea94bcbc2..000000000
--- a/src/test/ui/typeck/struct-enum-wrong-args.stderr
+++ /dev/null
@@ -1,133 +0,0 @@
-error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:6:13
- |
-LL | let _ = Some(3, 2);
- | ^^^^ - argument of type `{integer}` unexpected
- |
-note: tuple variant defined here
- --> $SRC_DIR/core/src/option.rs:LL:COL
- |
-LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
- | ^^^^
-help: remove the extra argument
- |
-LL | let _ = Some(3);
- | ~~~
-
-error[E0061]: this enum variant takes 1 argument but 3 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:7:13
- |
-LL | let _ = Ok(3, 6, 2);
- | ^^ - - argument of type `{integer}` unexpected
- | |
- | argument of type `{integer}` unexpected
- |
-note: tuple variant defined here
- --> $SRC_DIR/core/src/result.rs:LL:COL
- |
-LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
- | ^^
-help: remove the extra arguments
- |
-LL | let _ = Ok(3);
- | ~~~
-
-error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:8:13
- |
-LL | let _ = Ok();
- | ^^-- an argument is missing
- |
-note: tuple variant defined here
- --> $SRC_DIR/core/src/result.rs:LL:COL
- |
-LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
- | ^^
-help: provide the argument
- |
-LL | let _ = Ok(/* value */);
- | ~~~~~~~~~~~~~
-
-error[E0061]: this struct takes 1 argument but 0 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:9:13
- |
-LL | let _ = Wrapper();
- | ^^^^^^^-- an argument of type `i32` is missing
- |
-note: tuple struct defined here
- --> $DIR/struct-enum-wrong-args.rs:2:8
- |
-LL | struct Wrapper(i32);
- | ^^^^^^^
-help: provide the argument
- |
-LL | let _ = Wrapper(/* i32 */);
- | ~~~~~~~~~~~
-
-error[E0061]: this struct takes 1 argument but 2 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:10:13
- |
-LL | let _ = Wrapper(5, 2);
- | ^^^^^^^ - argument of type `{integer}` unexpected
- |
-note: tuple struct defined here
- --> $DIR/struct-enum-wrong-args.rs:2:8
- |
-LL | struct Wrapper(i32);
- | ^^^^^^^
-help: remove the extra argument
- |
-LL | let _ = Wrapper(5);
- | ~~~
-
-error[E0061]: this struct takes 2 arguments but 0 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:11:13
- |
-LL | let _ = DoubleWrapper();
- | ^^^^^^^^^^^^^-- two arguments of type `i32` and `i32` are missing
- |
-note: tuple struct defined here
- --> $DIR/struct-enum-wrong-args.rs:3:8
- |
-LL | struct DoubleWrapper(i32, i32);
- | ^^^^^^^^^^^^^
-help: provide the arguments
- |
-LL | let _ = DoubleWrapper(/* i32 */, /* i32 */);
- | ~~~~~~~~~~~~~~~~~~~~~~
-
-error[E0061]: this struct takes 2 arguments but 1 argument was supplied
- --> $DIR/struct-enum-wrong-args.rs:12:13
- |
-LL | let _ = DoubleWrapper(5);
- | ^^^^^^^^^^^^^--- an argument of type `i32` is missing
- |
-note: tuple struct defined here
- --> $DIR/struct-enum-wrong-args.rs:3:8
- |
-LL | struct DoubleWrapper(i32, i32);
- | ^^^^^^^^^^^^^
-help: provide the argument
- |
-LL | let _ = DoubleWrapper(5, /* i32 */);
- | ~~~~~~~~~~~~~~
-
-error[E0061]: this struct takes 2 arguments but 3 arguments were supplied
- --> $DIR/struct-enum-wrong-args.rs:13:13
- |
-LL | let _ = DoubleWrapper(5, 2, 7);
- | ^^^^^^^^^^^^^ - argument of type `{integer}` unexpected
- |
-note: tuple struct defined here
- --> $DIR/struct-enum-wrong-args.rs:3:8
- |
-LL | struct DoubleWrapper(i32, i32);
- | ^^^^^^^^^^^^^
-help: remove the extra argument
- |
-LL | let _ = DoubleWrapper(5, 2);
- | ~~~~~~
-
-error: aborting due to 8 previous errors
-
-For more information about this error, try `rustc --explain E0061`.