summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/issue-70972-dyn-trait.rs
blob: df28c474ab0a2012c95ae24fce475dfcdbedc1d2 (plain)
1
2
3
4
5
6
7
8
9
10
const F: &'static dyn Send = &7u32;

fn main() {
    let a: &dyn Send = &7u32;
    match a {
        F => panic!(),
        //~^ ERROR `dyn Send` cannot be used in patterns
        _ => {}
    }
}