summaryrefslogtreecommitdiffstats
path: root/src/test/ui/intrinsics/const-eval-select-bad.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/intrinsics/const-eval-select-bad.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/intrinsics/const-eval-select-bad.stderr')
-rw-r--r--src/test/ui/intrinsics/const-eval-select-bad.stderr113
1 files changed, 0 insertions, 113 deletions
diff --git a/src/test/ui/intrinsics/const-eval-select-bad.stderr b/src/test/ui/intrinsics/const-eval-select-bad.stderr
deleted file mode 100644
index 3720528ad..000000000
--- a/src/test/ui/intrinsics/const-eval-select-bad.stderr
+++ /dev/null
@@ -1,113 +0,0 @@
-error: this argument must be a function item
- --> $DIR/const-eval-select-bad.rs:7:27
- |
-LL | const_eval_select((), || {}, || {});
- | ^^^^^
- |
- = note: expected a function item, found [closure@$DIR/const-eval-select-bad.rs:7:27: 7:29]
- = help: consult the documentation on `const_eval_select` for more information
-
-error: this argument must be a function item
- --> $DIR/const-eval-select-bad.rs:7:34
- |
-LL | const_eval_select((), || {}, || {});
- | ^^^^^
- |
- = note: expected a function item, found [closure@$DIR/const-eval-select-bad.rs:7:34: 7:36]
- = help: consult the documentation on `const_eval_select` for more information
-
-error: this argument must be a function item
- --> $DIR/const-eval-select-bad.rs:10:27
- |
-LL | const_eval_select((), 42, 0xDEADBEEF);
- | ^^
- |
- = note: expected a function item, found {integer}
- = help: consult the documentation on `const_eval_select` for more information
-
-error[E0277]: expected a `FnOnce<()>` closure, found `{integer}`
- --> $DIR/const-eval-select-bad.rs:10:27
- |
-LL | const_eval_select((), 42, 0xDEADBEEF);
- | ----------------- ^^ expected an `FnOnce<()>` closure, found `{integer}`
- | |
- | required by a bound introduced by this call
- |
- = help: the trait `FnOnce<()>` is not implemented for `{integer}`
- = note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }`
-note: required by a bound in `const_eval_select`
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
- |
-LL | F: FnOnce<ARG, Output = RET>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
-
-error: this argument must be a function item
- --> $DIR/const-eval-select-bad.rs:10:31
- |
-LL | const_eval_select((), 42, 0xDEADBEEF);
- | ^^^^^^^^^^
- |
- = note: expected a function item, found {integer}
- = help: consult the documentation on `const_eval_select` for more information
-
-error[E0277]: expected a `FnOnce<()>` closure, found `{integer}`
- --> $DIR/const-eval-select-bad.rs:10:31
- |
-LL | const_eval_select((), 42, 0xDEADBEEF);
- | ----------------- ^^^^^^^^^^ expected an `FnOnce<()>` closure, found `{integer}`
- | |
- | required by a bound introduced by this call
- |
- = help: the trait `FnOnce<()>` is not implemented for `{integer}`
- = note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }`
-note: required by a bound in `const_eval_select`
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
- |
-LL | G: FnOnce<ARG, Output = RET>,
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
-
-error[E0271]: expected `fn(i32) -> bool {bar}` to be a fn item that returns `i32`, but it returns `bool`
- --> $DIR/const-eval-select-bad.rs:32:34
- |
-LL | const_eval_select((1,), foo, bar);
- | ----------------- ^^^ expected `i32`, found `bool`
- | |
- | required by a bound introduced by this call
- |
-note: required by a bound in `const_eval_select`
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
- |
-LL | G: FnOnce<ARG, Output = RET>,
- | ^^^^^^^^^^^^ required by this bound in `const_eval_select`
-
-error[E0631]: type mismatch in function arguments
- --> $DIR/const-eval-select-bad.rs:37:32
- |
-LL | const fn foo(n: i32) -> i32 {
- | --------------------------- found signature defined here
-...
-LL | const_eval_select((true,), foo, baz);
- | ----------------- ^^^ expected due to this
- | |
- | required by a bound introduced by this call
- |
- = note: expected function signature `fn(bool) -> _`
- found function signature `fn(i32) -> _`
-note: required by a bound in `const_eval_select`
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
- |
-LL | F: FnOnce<ARG, Output = RET>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
-
-error: this argument must be a `const fn`
- --> $DIR/const-eval-select-bad.rs:42:29
- |
-LL | const_eval_select((1,), bar, bar);
- | ^^^
- |
- = help: consult the documentation on `const_eval_select` for more information
-
-error: aborting due to 9 previous errors
-
-Some errors have detailed explanations: E0271, E0277, E0631.
-For more information about an error, try `rustc --explain E0271`.