about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/fixtures/sample.rs
blob: 956fdbe090baebe29999161e4c1a5f95b66031d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![crate_type = "lib"]

#[cfg(target_os = "linux")]
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);
}

macro_rules! bar {
    ($foo:tt) => {};
}