2014-07-25 11:41:09 -05:00
|
|
|
fn outer<T>() {
|
|
|
|
#[allow(dead_code)]
|
2015-02-11 18:48:05 -06:00
|
|
|
fn inner() -> u32 {
|
2014-07-25 11:41:09 -05:00
|
|
|
8675309
|
|
|
|
}
|
2017-10-30 12:21:06 -05:00
|
|
|
inner();
|
2014-07-25 11:41:09 -05:00
|
|
|
}
|
|
|
|
|
2014-08-08 13:24:44 -05:00
|
|
|
extern "C" fn outer_foreign<T>() {
|
|
|
|
#[allow(dead_code)]
|
2015-02-11 18:48:05 -06:00
|
|
|
fn inner() -> u32 {
|
2014-08-08 13:24:44 -05:00
|
|
|
11235813
|
|
|
|
}
|
2017-10-30 12:21:06 -05:00
|
|
|
inner();
|
2014-08-08 13:24:44 -05:00
|
|
|
}
|
|
|
|
|
2014-07-25 11:41:09 -05:00
|
|
|
fn main() {
|
2015-03-25 19:06:52 -05:00
|
|
|
outer::<isize>();
|
|
|
|
outer::<usize>();
|
|
|
|
outer_foreign::<isize>();
|
|
|
|
outer_foreign::<usize>();
|
2014-07-25 11:41:09 -05:00
|
|
|
}
|