diff options
Diffstat (limited to 'src/test/ui/consts/drop_box.rs')
-rw-r--r-- | src/test/ui/consts/drop_box.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/consts/drop_box.rs b/src/test/ui/consts/drop_box.rs new file mode 100644 index 000000000..58a373a96 --- /dev/null +++ b/src/test/ui/consts/drop_box.rs @@ -0,0 +1,4 @@ +const fn f<T>(_: Box<T>) {} +//~^ ERROR destructors cannot be evaluated at compile-time + +fn main() {} |