rust/tests/ui/box/unit/unique-decl.rs

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

12 lines
131 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
pub fn main() {
let _: Box<isize>;
2011-09-20 23:07:09 +00:00
}
fn f(_i: Box<isize>) -> Box<isize> {
panic!();
2011-09-20 23:07:09 +00:00
}