summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/comp_error.md
blob: 6d1bf4681ec2a48bbf5492405779c1824b4d1923 (plain)
1
2
3
4
5
## Comparing two objects with different types is now an error

Using the `==` and `!=` operators to compare objects of different (for instance
`[1] == 1`) types was deprecated and undefined behavior since 0.45.0 and is
now a hard error.