-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.
Description
These currently compile, even if they can be used from compile-time code to trigger a drop:
#![feature(const_fn)]
pub const fn drop<T>(_: T) {}
pub const fn drop2<T>(x: T) { (x, ()).1 }cc @alexreg
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.