]> git.lizzy.rs Git - rust.git/blob - tests/ui/cfg/cfg-method-receiver.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / cfg / cfg-method-receiver.stderr
1 error: removing an expression is not supported in this position
2   --> $DIR/cfg-method-receiver.rs:9:17
3    |
4 LL |     cbor_map! { #[cfg(test)] 4};
5    |                 ^^^^^^^^^^^^
6
7 error[E0689]: can't call method `signum` on ambiguous numeric type `{integer}`
8   --> $DIR/cfg-method-receiver.rs:3:14
9    |
10 LL |         $key.signum();
11    |              ^^^^^^
12 ...
13 LL |     cbor_map! { #[cfg(test)] 4};
14    |     --------------------------- in this macro invocation
15    |
16    = note: this error originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info)
17 help: you must specify a concrete type for this numeric value, like `i32`
18    |
19 LL |     cbor_map! { #[cfg(test)] 4_i32};
20    |                              ~~~~~
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0689`.