rust/tests/ui/rfcs/rfc-2632-const-trait-impl/mbe-dyn-const-2015.rs
2023-12-27 12:51:32 +01:00

14 lines
299 B
Rust

// Ensure that the introduction of const trait bound didn't regress this code in Rust 2015.
// See also `mbe-const-trait-bound-theoretical-regression.rs`.
// check-pass
macro_rules! check {
($ty:ty) => { compile_error!("ty"); };
(dyn $c:ident) => {};
}
check! { dyn const }
fn main() {}