summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/highlight/fixtures/sample.rs
blob: ef85b566cb3c487bf756d212f4a8b5b9d68f6eb1 (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
#![crate_type = "lib"]

use std::path::{Path, PathBuf};

#[cfg(target_os = "linux")]
#[cfg(target_os = "windows")]
fn main() -> () {
    let foo = true && false || true;
    let _: *const () = 0;
    let _ = &foo;
    let _ = &&foo;
    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 {
    ($foo:tt) => {};
}