about summary refs log tree commit diff
path: root/tests/ui/match/issue-70972-dyn-trait.stderr
blob: cec9c8539f41643b22443d45b7b970e95e6d7628 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: trait object `dyn Send` cannot be used in patterns
  --> $DIR/issue-70972-dyn-trait.rs:6:9
   |
LL | const F: &'static dyn Send = &7u32;
   | -------------------------- constant defined here
...
LL |         F => panic!(),
   |         ^ trait object can't be used in patterns

error: aborting due to 1 previous error