]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/highlight/fixtures/sample.rs
Rollup merge of #88313 - jyn514:pre-push, r=Mark-Simulacrum
[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 fn main() -> () {
7     let foo = true && false || true;
8     let _: *const () = 0;
9     let _ = &foo;
10     let _ = &&foo;
11     let _ = *foo;
12     mac!(foo, &mut bar);
13     assert!(self.length < N && index <= self.length);
14     ::std::env::var("gateau").is_ok();
15     #[rustfmt::skip]
16     let s:std::path::PathBuf = std::path::PathBuf::new();
17     let mut s = String::new();
18
19     match &s {
20         ref mut x => {}
21     }
22 }
23
24 macro_rules! bar {
25     ($foo:tt) => {};
26 }