mirror of
https://github.com/Steffo99/micronfig.git
synced 2024-12-23 20:44:18 +00:00
25 lines
799 B
Text
25 lines
799 B
Text
|
error[E0277]: the trait bound `u64: From<String>` is not satisfied
|
||
|
--> tests/sources/wrong_conversion_trait_from.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>`
|