I tried this code:
#![crate_type = "lib"]
pub trait X{}
pub struct Y;
#[diagnostic::do_not_recommend(if)]
impl X for Y {}
I expected to see this happen: a warning
Instead, this happened: an error
Meta
this attribute is never allowed to error, this is a corner case I missed in #151516
cc @JonathanBrouwer @jdonszelmann
@rustbot claim
I tried this code:
I expected to see this happen: a warning
Instead, this happened: an error
Meta
this attribute is never allowed to error, this is a corner case I missed in #151516
cc @JonathanBrouwer @jdonszelmann
@rustbot claim