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