-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)
Description
#[cold]
struct DonnerParty;
fn main() {
#[cold] 5;
}
Is it intentional that this work? If so, what is it supposed to do? The reference lists it as a function-only attribute, but I've always known it to work on expressions like loops as well.
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)