]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/object/macro-matcher.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / traits / object / macro-matcher.rs
CommitLineData
cc61c64b
XL
1// `ty` matcher accepts trait object types
2
3macro_rules! m {
4 ($t: ty) => ( let _: $t; )
5}
6
7453a54e 7fn main() {
dc9dc135 8 m!(dyn Copy + Send + 'static);
1b1a35ee 9 //~^ ERROR the trait `Copy` cannot be made into an object
dc9dc135
XL
10 m!(dyn 'static + Send);
11 m!(dyn 'static +); //~ ERROR at least one trait is required for an object type
223e47cc 12}