@@ -27,7 +27,7 @@ LL | const_eval_select((), 42, 0xDEADBEEF);
27
27
= help: the trait `FnOnce()` is not implemented for `{integer}`
28
28
= note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }`
29
29
note: required by a bound in `const_eval_select`
30
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
30
+ --> $SRC_DIR/core/src/intrinsics/mod .rs:LL:COL
31
31
32
32
error[E0277]: expected a `FnOnce()` closure, found `{integer}`
33
33
--> $DIR/const-eval-select-bad.rs:10:31
@@ -40,7 +40,7 @@ LL | const_eval_select((), 42, 0xDEADBEEF);
40
40
= help: the trait `FnOnce()` is not implemented for `{integer}`
41
41
= note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }`
42
42
note: required by a bound in `const_eval_select`
43
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
43
+ --> $SRC_DIR/core/src/intrinsics/mod .rs:LL:COL
44
44
45
45
error: this argument must be a function item
46
46
--> $DIR/const-eval-select-bad.rs:10:27
@@ -69,7 +69,7 @@ LL | const_eval_select((1,), foo, bar);
69
69
| required by a bound introduced by this call
70
70
|
71
71
note: required by a bound in `const_eval_select`
72
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
72
+ --> $SRC_DIR/core/src/intrinsics/mod .rs:LL:COL
73
73
74
74
error[E0631]: type mismatch in function arguments
75
75
--> $DIR/const-eval-select-bad.rs:37:32
@@ -85,7 +85,7 @@ LL | const_eval_select((true,), foo, baz);
85
85
= note: expected function signature `fn(bool) -> _`
86
86
found function signature `fn(i32) -> _`
87
87
note: required by a bound in `const_eval_select`
88
- --> $SRC_DIR/core/src/intrinsics.rs:LL:COL
88
+ --> $SRC_DIR/core/src/intrinsics/mod .rs:LL:COL
89
89
help: consider wrapping the function in a closure
90
90
|
91
91
LL | const_eval_select((true,), |arg0: bool| foo(/* i32 */), baz);
0 commit comments