]> git.proxmox.com Git - rustc.git/blob - tests/ui/match/issue-70972-dyn-trait.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / match / issue-70972-dyn-trait.rs
1 const F: &'static dyn Send = &7u32;
2
3 fn main() {
4 let a: &dyn Send = &7u32;
5 match a {
6 F => panic!(),
7 //~^ ERROR `&dyn Send` cannot be used in patterns
8 _ => {}
9 }
10 }