rust/tests/run-make/issue-7349/foo.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
342 B
Rust
Raw Normal View History

fn outer<T>() {
#[allow(dead_code)]
fn inner() -> u32 {
8675309
}
2017-10-30 12:21:06 -05:00
inner();
}
extern "C" fn outer_foreign<T>() {
#[allow(dead_code)]
fn inner() -> u32 {
11235813
}
2017-10-30 12:21:06 -05:00
inner();
}
fn main() {
outer::<isize>();
outer::<usize>();
outer_foreign::<isize>();
outer_foreign::<usize>();
}