summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/manual_main_separator_str.stderr
blob: e6cefde66a7d27b648287ba30210df2b3c5b9a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
  --> $DIR/manual_main_separator_str.rs:23:19
   |
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`

error: taking a reference on `std::path::MAIN_SEPARATOR` conversion to `String`
  --> $DIR/manual_main_separator_str.rs:24:17
   |
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`
  --> $DIR/manual_main_separator_str.rs:25:23
   |
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`
  --> $DIR/manual_main_separator_str.rs:29:12
   |
LL |         f: &MAIN_SEPARATOR.to_string(),
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `std::path::MAIN_SEPARATOR_STR`

error: aborting due to 4 previous errors