mirror of
https://github.com/Steffo99/micronfig.git
synced 2024-11-22 16:14:19 +00:00
26 lines
922 B
Text
26 lines
922 B
Text
error[E0277]: the trait bound `u64: From<String>` is not satisfied
|
|
--> tests/sources/wrong_conversion_trait_tryfrom.rs:1:1
|
|
|
|
|
1 | / micronfig::config! {
|
|
2 | | GARASAUTO: String => u64,
|
|
3 | | }
|
|
| | ^
|
|
| | |
|
|
| |_the trait `From<String>` is not implemented for `u64`
|
|
| in this macro invocation
|
|
|
|
|
::: src/lib.rs
|
|
|
|
|
| pub fn config(input: TokenStream) -> TokenStream {
|
|
| ------------------------------------------------ in this expansion of `micronfig::config!`
|
|
|
|
|
= help: the following other types implement trait `From<T>`:
|
|
<u64 as From<bool>>
|
|
<u64 as From<char>>
|
|
<u64 as From<u8>>
|
|
<u64 as From<u16>>
|
|
<u64 as From<u32>>
|
|
<u64 as From<NonZeroU64>>
|
|
= note: required for `String` to implement `Into<u64>`
|
|
= note: required for `u64` to implement `TryFrom<String>`
|
|
= note: required for `String` to implement `TryInto<u64>`
|