diff options
Diffstat (limited to 'tests/ui/unique/unique-decl.rs')
-rw-r--r-- | tests/ui/unique/unique-decl.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/unique/unique-decl.rs b/tests/ui/unique/unique-decl.rs new file mode 100644 index 000000000..84a1b2a5b --- /dev/null +++ b/tests/ui/unique/unique-decl.rs @@ -0,0 +1,11 @@ +// run-pass +#![allow(dead_code)] + + +pub fn main() { + let _: Box<isize>; +} + +fn f(_i: Box<isize>) -> Box<isize> { + panic!(); +} |