You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^^^^^^^^ the trait `From<i32>` is not implemented for `WrongFrom`
98
+
| ^^^^^^^^^^^^^^^ unsatisfied trait bound
99
+
|
100
+
help: the trait `From<i32>` is not implemented for `WrongFrom`
101
+
but trait `From<u32>` is implemented for it
102
+
--> $DIR/subgroup_composite_enum_err.rs:
94
103
|
95
-
= help: the trait `From<i32>` is not implemented for `WrongFrom`
96
-
but trait `From<u32>` is implemented for it
104
+
LL | impl From<$repr> for $ident {
105
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
+
...
107
+
LL | enum_repr_from!(WrongFrom, u32);
108
+
| ------------------------------- in this macro invocation
97
109
= help: for that trait implementation, expected `u32`, found `i32`
98
-
= note: this error originates in the derive macro `ScalarComposite` (in Nightly builds, run with -Z macro-backtrace for more info)
110
+
= note: this error originates in the derive macro `ScalarComposite` which comes from the expansion of the macro `enum_repr_from` (in Nightly builds, run with -Z macro-backtrace for more info)
99
111
100
112
error[E0277]: the trait bound `i32: From<WrongFrom>` is not satisfied
%3 = OpString "/n[Rust panicked at $SYSROOT/lib/rustlib/src/rust/library/core/src/panicking.rs:280:5]/n index out of bounds: the len is %u but the index is %u/n in main()/n"
7
+
%3 = OpString "/n[Rust panicked at $SYSROOT/lib/rustlib/src/rust/library/core/src/panicking.rs:276:5]/n index out of bounds: the len is %u but the index is %u/n in main()/n"
0 commit comments