diff options
Diffstat (limited to 'tests/ui/consts/drop_box.rs')
-rw-r--r-- | tests/ui/consts/drop_box.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/consts/drop_box.rs b/tests/ui/consts/drop_box.rs new file mode 100644 index 000000000..679974130 --- /dev/null +++ b/tests/ui/consts/drop_box.rs @@ -0,0 +1,4 @@ +const fn f<T>(_: Box<T>) {} +//~^ ERROR destructor of + +fn main() {} |