fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB23 linesraw
1warning: to use a constant of type `&[O<B>]` in a pattern, the type must implement `PartialEq`
2  --> $DIR/issue-65466.rs:18:9
3   |
4LL |         C => (),
5   |         ^
6   |
7   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8   = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
9   = note: `#[warn(const_patterns_without_partial_eq)]` on by default
10
11warning: 1 warning emitted
12
13Future incompatibility report: Future breakage diagnostic:
14warning: to use a constant of type `&[O<B>]` in a pattern, the type must implement `PartialEq`
15  --> $DIR/issue-65466.rs:18:9
16   |
17LL |         C => (),
18   |         ^
19   |
20   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
21   = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122>
22   = note: `#[warn(const_patterns_without_partial_eq)]` on by default
23