2024-01-05 06:48:51 +00:00
|
|
|
error[E0277]: the trait bound `Infallible: FromStr` is not satisfied
|
|
|
|
--> tests/sources/wrong_conversion_trait_fromstr.rs:1:1
|
|
|
|
|
|
|
|
|
1 | / micronfig::config! {
|
|
|
|
2 | | GARASAUTO: String > std::convert::Infallible,
|
|
|
|
3 | | }
|
2024-12-19 09:57:24 +00:00
|
|
|
| |_^ the trait `FromStr` is not implemented for `Infallible`
|
2024-01-05 06:48:51 +00:00
|
|
|
|
|
|
|
|
= help: the following other types implement trait `FromStr`:
|
2024-12-19 09:57:24 +00:00
|
|
|
IpAddr
|
|
|
|
Ipv4Addr
|
|
|
|
Ipv6Addr
|
|
|
|
NonZero<i128>
|
|
|
|
NonZero<i16>
|
|
|
|
NonZero<i32>
|
|
|
|
NonZero<i64>
|
|
|
|
NonZero<i8>
|
2024-01-05 06:48:51 +00:00
|
|
|
and $N others
|
|
|
|
note: required by a bound in `core::str::<impl str>::parse`
|
|
|
|
--> $RUST/core/src/str/mod.rs
|
2024-12-19 09:57:24 +00:00
|
|
|
|
|
|
|
|
| pub fn parse<F: FromStr>(&self) -> Result<F, F::Err> {
|
|
|
|
| ^^^^^^^ required by this bound in `core::str::<impl str>::parse`
|
|
|
|
= note: this error originates in the macro `micronfig::config` (in Nightly builds, run with -Z macro-backtrace for more info)
|