about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/mbe-dyn-const-2015.rs
blob: 9d65a2ac302606067966554b7f46a4d570d313f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}