]> git.lizzy.rs Git - rust.git/blob - tests/target/raw_identifiers.rs
nightly-0.99.3
[rust.git] / tests / target / raw_identifiers.rs
1 #![feature(custom_attribute)]
2 #![feature(raw_identifiers)]
3 #![feature(extern_types)]
4 #![allow(invalid_type_param_default)]
5 #![allow(unused_attributes)]
6
7 use r#foo as r#alias_foo;
8
9 fn main() {
10     #[r#attr]
11     r#foo::r#bar();
12
13     let r#local = r#Struct { r#field: () };
14     let r#async = r#foo(r#local);
15     r#macro!();
16
17     if let r#sub_pat @ r#Foo(_) = r#Foo(3) {}
18
19     match r#async {
20         r#Foo | r#Bar => r#foo(),
21     }
22 }
23
24 fn r#bar<'a, r#T>(r#x: &'a r#T) {}
25
26 mod r#foo {
27     pub fn r#bar() {}
28 }
29
30 enum r#Foo {
31     r#Bar {},
32 }
33
34 struct r#Struct {
35     r#field: r#FieldType,
36 }
37
38 trait r#Trait {
39     type r#Type;
40 }
41
42 impl r#Trait for r#Impl {
43     type r#Type = r#u32;
44     fn r#xxx(r#fjio: r#u32) {}
45 }
46
47 extern "C" {
48     type r#ccc;
49     static r#static_val: u32;
50 }
51
52 macro_rules! r#macro {
53     () => {};
54 }
55
56 macro_rules! foo {
57     ($x:expr) => {
58         let r#catch = $x + 1;
59         println!("{}", r#catch);
60     };
61 }