]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/issue-70972-dyn-trait.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.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 }