2023-03-24 08:04:35 -05:00
|
|
|
error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/manual_main_separator_str.rs:21:19
|
2023-03-24 08:04:35 -05:00
|
|
|
|
|
|
|
|
LL | let _: &str = &MAIN_SEPARATOR.to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `std::path::MAIN_SEPARATOR_STR`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-main-separator-str` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_main_separator_str)]`
|
2023-03-24 08:04:35 -05:00
|
|
|
|
|
|
|
error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/manual_main_separator_str.rs:22:17
|
2023-03-24 08:04:35 -05:00
|
|
|
|
|
|
|
|
LL | let _ = len(&MAIN_SEPARATOR.to_string());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `std::path::MAIN_SEPARATOR_STR`
|
|
|
|
|
|
|
|
error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/manual_main_separator_str.rs:23:23
|
2023-03-24 08:04:35 -05:00
|
|
|
|
|
|
|
|
LL | let _: Vec<u16> = MAIN_SEPARATOR.to_string().encode_utf16().collect();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `std::path::MAIN_SEPARATOR_STR`
|
|
|
|
|
|
|
|
error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/manual_main_separator_str.rs:27:12
|
2023-03-24 08:04:35 -05:00
|
|
|
|
|
|
|
|
LL | f: &MAIN_SEPARATOR.to_string(),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `std::path::MAIN_SEPARATOR_STR`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|