]> git.proxmox.com Git - rustc.git/blame - src/librustdoc/html/highlight/fixtures/sample.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / librustdoc / html / highlight / fixtures / sample.rs
CommitLineData
1b1a35ee
XL
1#![crate_type = "lib"]
2
cdc7bbd5
XL
3use std::path::{Path, PathBuf};
4
1b1a35ee 5#[cfg(target_os = "linux")]
f2b60f7d 6#[cfg(target_os = "windows")]
c295e0f8 7fn main() -> () {
1b1a35ee
XL
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);
cdc7bbd5
XL
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 }
1b1a35ee
XL
23}
24
25macro_rules! bar {
26 ($foo:tt) => {};
27}