From 9f67ad82122214b4c4d0349156caf6ee176c1352 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Thu, 30 Nov 2017 19:37:53 +0900 Subject: [PATCH] Add a test for #2212 --- tests/target/impl.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/target/impl.rs b/tests/target/impl.rs index 7fce1d9dd76..99922d406f4 100644 --- a/tests/target/impl.rs +++ b/tests/target/impl.rs @@ -36,3 +36,8 @@ impl Foo for T default impl Trait for X {} default unsafe impl Trait for Y {} pub default unsafe impl Trait for Z {} + +// #2212 +impl ConstWithDefault { + default const CAN_RECONSTRUCT_QUERY_KEY: bool = false; +} -- 2.44.0