diff --git a/src/librustdoc/html/highlight/fixtures/sample.html b/src/librustdoc/html/highlight/fixtures/sample.html index 4966e0ac6bb..8d23477bbcb 100644 --- a/src/librustdoc/html/highlight/fixtures/sample.html +++ b/src/librustdoc/html/highlight/fixtures/sample.html @@ -10,6 +10,8 @@
#![crate_type = "lib"]
+use std::path::{Path, PathBuf};
+
#[cfg(target_os = "linux")]
fn main() {
let foo = true && false || true;
@@ -19,6 +21,14 @@
let _ = *foo;
mac!(foo, &mut bar);
assert!(self.length < N && index <= self.length);
+ ::std::env::var("gateau").is_ok();
+ #[rustfmt::skip]
+ let s:std::path::PathBuf = std::path::PathBuf::new();
+ let mut s = String::new();
+
+ match &s {
+ ref mut x => {}
+ }
}
macro_rules! bar {
diff --git a/src/librustdoc/html/highlight/fixtures/sample.rs b/src/librustdoc/html/highlight/fixtures/sample.rs
index 956fdbe090b..b027203655d 100644
--- a/src/librustdoc/html/highlight/fixtures/sample.rs
+++ b/src/librustdoc/html/highlight/fixtures/sample.rs
@@ -1,5 +1,7 @@
#![crate_type = "lib"]
+use std::path::{Path, PathBuf};
+
#[cfg(target_os = "linux")]
fn main() {
let foo = true && false || true;
@@ -9,6 +11,14 @@ fn main() {
let _ = *foo;
mac!(foo, &mut bar);
assert!(self.length < N && index <= self.length);
+ ::std::env::var("gateau").is_ok();
+ #[rustfmt::skip]
+ let s:std::path::PathBuf = std::path::PathBuf::new();
+ let mut s = String::new();
+
+ match &s {
+ ref mut x => {}
+ }
}
macro_rules! bar {