]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | #![crate_type="lib"] |
223e47cc | 2 | |
1a4d82fc JJ |
3 | pub fn |
4 | foo() -> i32 | |
5 | { 45 } | |
970d7e83 | 6 | |
1a4d82fc | 7 | pub fn bar() -> &'static str { "i am not a foo." } |
970d7e83 | 8 | |
1a4d82fc JJ |
9 | pub mod nest { |
10 | pub fn foo() -> &'static str { "i am a foo." } | |
970d7e83 | 11 | |
1a4d82fc JJ |
12 | struct S; |
13 | impl S { | |
14 | fn foo_method(&self) -> &'static str { | |
c34b1796 | 15 | return "i am very similar to foo."; |
970d7e83 LB |
16 | } |
17 | } | |
223e47cc | 18 | } |