Closed
Description
The following code is accepted, but the #[deprecated]
attribute has no effect:
struct X;
#[deprecated = "hoi"]
impl Default for X {
fn default() -> Self {
X
}
}
(Reported to me by @de-vri-es)
The following code is accepted, but the #[deprecated]
attribute has no effect:
struct X;
#[deprecated = "hoi"]
impl Default for X {
fn default() -> Self {
X
}
}
(Reported to me by @de-vri-es)