]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-70972-dyn-trait.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / 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 }