2024-12-19 09:57:24 +00:00
|
|
|
error[E0277]: the trait bound `u64: TryFrom<String>` is not satisfied
|
2024-01-05 06:48:51 +00:00
|
|
|
--> tests/sources/wrong_conversion_trait_tryfrom.rs:1:1
|
|
|
|
|
|
|
|
|
1 | / micronfig::config! {
|
|
|
|
2 | | GARASAUTO: String => u64,
|
|
|
|
3 | | }
|
2024-12-19 09:57:24 +00:00
|
|
|
| |_^ the trait `From<String>` is not implemented for `u64`, which is required by `String: TryInto<_>`
|
2024-01-05 06:48:51 +00:00
|
|
|
|
|
|
|
|
= help: the following other types implement trait `From<T>`:
|
2024-12-19 09:57:24 +00:00
|
|
|
`u64` implements `From<Char>`
|
|
|
|
`u64` implements `From<bool>`
|
|
|
|
`u64` implements `From<char>`
|
|
|
|
`u64` implements `From<u16>`
|
|
|
|
`u64` implements `From<u32>`
|
|
|
|
`u64` implements `From<u8>`
|
2024-01-05 06:48:51 +00:00
|
|
|
= note: required for `String` to implement `Into<u64>`
|
|
|
|
= note: required for `u64` to implement `TryFrom<String>`
|
|
|
|
= note: required for `String` to implement `TryInto<u64>`
|
2024-12-19 09:57:24 +00:00
|
|
|
= note: this error originates in the macro `micronfig::config` (in Nightly builds, run with -Z macro-backtrace for more info)
|