Jelajahi Sumber

Have rustdoc --test ignore some non-freestanding doc examples.

Simon Sapin 12 tahun lalu
induk
melakukan
ad61773abc
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -559,7 +559,7 @@ impl Url {
     /// (Use `std::path::Path` to pick one of them depending on the local system.)
     /// (Use `std::path::Path` to pick one of them depending on the local system.)
     /// If the compiler can not infer the desired type from context, you may have to specifiy it:
     /// If the compiler can not infer the desired type from context, you may have to specifiy it:
     ///
     ///
-    /// ```rust
+    /// ```ignore
     /// let path = url.to_file_path::<std::path::posix::Path>();
     /// let path = url.to_file_path::<std::path::posix::Path>();
     /// ```
     /// ```
     ///
     ///
@@ -787,7 +787,7 @@ impl RelativeSchemeData {
     /// (Use `std::path::Path` to pick one of them depending on the local system.)
     /// (Use `std::path::Path` to pick one of them depending on the local system.)
     /// If the compiler can not infer the desired type from context, you may have to specifiy it:
     /// If the compiler can not infer the desired type from context, you may have to specifiy it:
     ///
     ///
-    /// ```rust
+    /// ```ignore
     /// let path = url.to_file_path::<std::path::posix::Path>();
     /// let path = url.to_file_path::<std::path::posix::Path>();
     /// ```
     /// ```
     ///
     ///