提交 1384200b 编写于 作者: R Rich Kadel

Added a new test demonstrating the issue requiring revert

Note, the `Debug` impl is required.
上级 2a6dd252
......@@ -430,6 +430,24 @@ pub fn foo() {
// the patterns are all fine:
(..) = x;
}
#[derive(Debug)]
#[deprecated(note = "Use something else instead")]
enum DeprecatedDebugEnum {
Variant1 { value: Option<String> },
}
#[allow(deprecated)]
impl DeprecatedDebugEnum {
fn new() -> Self {
DeprecatedDebugEnum::Variant1 { value: None }
}
}
#[allow(deprecated)]
pub fn allow_dep() {
let _ = DeprecatedDebugEnum::new();
}
}
fn main() {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册