1+ <<<<<<< HEAD
12error[E0277]: the trait bound `[closure@$DIR/const-eval-select-bad.rs:6:27: 6:29]: ~const FnOnce<()>` is not satisfied
23 --> $DIR/const-eval-select-bad.rs:6:27
34 |
@@ -13,14 +14,31 @@ note: the trait `FnOnce<()>` is implemented for `[closure@$DIR/const-eval-select
1314LL | const_eval_select((), || {}, || {});
1415 | ^^^^^
1516 = note: wrap the `[closure@$DIR/const-eval-select-bad.rs:6:27: 6:29]` in a closure with no arguments: `|| { /* code */ }`
17+ =======
18+ error[E0277]: the trait bound `[closure@$DIR/const-eval-select-bad.rs:7:27: 7:32]: ~const FnOnce<()>` is not satisfied
19+ --> $DIR/const-eval-select-bad.rs:7:27
20+ |
21+ LL | const_eval_select((), || {}, || {});
22+ | ----------------- ^^^^^ expected an `FnOnce<()>` closure, found `[closure@$DIR/const-eval-select-bad.rs:7:27: 7:32]`
23+ | |
24+ | required by a bound introduced by this call
25+ |
26+ = help: the trait `~const FnOnce<()>` is not implemented for `[closure@$DIR/const-eval-select-bad.rs:7:27: 7:32]`
27+ note: the trait `FnOnce<()>` is implemented for `[closure@$DIR/const-eval-select-bad.rs:7:27: 7:32]`, but that implementation is not `const`
28+ --> $DIR/const-eval-select-bad.rs:7:27
29+ |
30+ LL | const_eval_select((), || {}, || {});
31+ | ^^^^^
32+ = note: wrap the `[closure@$DIR/const-eval-select-bad.rs:7:27: 7:32]` in a closure with no arguments: `|| { /* code */ }`
33+ >>>>>>> c1798b7c60e... Support unstable moves via stable in unstable items
1634note: required by a bound in `const_eval_select`
1735 --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
1836 |
1937LL | F: ~const FnOnce<ARG, Output = RET>,
2038 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
2139
2240error[E0277]: the trait bound `{integer}: ~const FnOnce<()>` is not satisfied
23- --> $DIR/const-eval-select-bad.rs:8 :27
41+ --> $DIR/const-eval-select-bad.rs:9 :27
2442 |
2543LL | const_eval_select((), 42, 0xDEADBEEF);
2644 | ----------------- ^^ expected an `FnOnce<()>` closure, found `{integer}`
@@ -36,7 +54,7 @@ LL | F: ~const FnOnce<ARG, Output = RET>,
3654 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
3755
3856error[E0277]: expected a `FnOnce<()>` closure, found `{integer}`
39- --> $DIR/const-eval-select-bad.rs:8 :31
57+ --> $DIR/const-eval-select-bad.rs:9 :31
4058 |
4159LL | const_eval_select((), 42, 0xDEADBEEF);
4260 | ----------------- ^^^^^^^^^^ expected an `FnOnce<()>` closure, found `{integer}`
@@ -52,7 +70,7 @@ LL | G: FnOnce<ARG, Output = RET> + ~const Destruct,
5270 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `const_eval_select`
5371
5472error[E0271]: type mismatch resolving `<fn(i32) -> bool {bar} as FnOnce<(i32,)>>::Output == i32`
55- --> $DIR/const-eval-select-bad.rs:28 :5
73+ --> $DIR/const-eval-select-bad.rs:29 :5
5674 |
5775LL | const_eval_select((1,), foo, bar);
5876 | ^^^^^^^^^^^^^^^^^ expected `i32`, found `bool`
@@ -64,7 +82,7 @@ LL | G: FnOnce<ARG, Output = RET> + ~const Destruct,
6482 | ^^^^^^^^^^^^ required by this bound in `const_eval_select`
6583
6684error[E0631]: type mismatch in function arguments
67- --> $DIR/const-eval-select-bad.rs:33 :32
85+ --> $DIR/const-eval-select-bad.rs:34 :32
6886 |
6987LL | const fn foo(n: i32) -> i32 {
7088 | --------------------------- found signature of `fn(i32) -> _`
0 commit comments