]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/highlight/fixtures/sample.rs
Rollup merge of #103445 - fmease:fix-50291, r=estebank
[rust.git] / src / librustdoc / html / highlight / fixtures / sample.rs
1 #![crate_type = "lib"]
2
3 use std::path::{Path, PathBuf};
4
5 #[cfg(target_os = "linux")]
6 #[cfg(target_os = "windows")]
7 fn main() -> () {
8     let foo = true && false || true;
9     let _: *const () = 0;
10     let _ = &foo;
11     let _ = &&foo;
12     let _ = *foo;
13     mac!(foo, &mut bar);
14     assert!(self.length < N && index <= self.length);
15     ::std::env::var("gateau").is_ok();
16     #[rustfmt::skip]
17     let s:std::path::PathBuf = std::path::PathBuf::new();
18     let mut s = String::new();
19
20     match &s {
21         ref mut x => {}
22     }
23 }
24
25 macro_rules! bar {
26     ($foo:tt) => {};
27 }