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() {}
|