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

error: aborting due to 1 previous error