]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const_in_pattern/reject_non_structural.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / consts / const_in_pattern / reject_non_structural.stderr
CommitLineData
f9f354fc
XL
1error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
2 --> $DIR/reject_non_structural.rs:40:36
3 |
4LL | match Derive::Some(NoDerive) { ENUM => dbg!(ENUM), _ => panic!("whoops"), };
5 | ^^^^
6
7error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 8 --> $DIR/reject_non_structural.rs:44:28
f9f354fc
XL
9 |
10LL | match Some(NoDerive) { FIELD => dbg!(FIELD), _ => panic!("whoops"), };
11 | ^^^^^
12
13error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 14 --> $DIR/reject_non_structural.rs:49:27
f9f354fc
XL
15 |
16LL | match Some(NoDerive) {INDIRECT => dbg!(INDIRECT), _ => panic!("whoops"), };
17 | ^^^^^^^^
18
19error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 20 --> $DIR/reject_non_structural.rs:53:36
f9f354fc
XL
21 |
22LL | match (None, Some(NoDerive)) { TUPLE => dbg!(TUPLE), _ => panic!("whoops"), };
23 | ^^^^^
24
25error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 26 --> $DIR/reject_non_structural.rs:57:28
f9f354fc
XL
27 |
28LL | match Some(NoDerive) { TYPE_ASCRIPTION => dbg!(TYPE_ASCRIPTION), _ => panic!("whoops"), };
29 | ^^^^^^^^^^^^^^^
30
31error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 32 --> $DIR/reject_non_structural.rs:61:36
f9f354fc
XL
33 |
34LL | match [None, Some(NoDerive)] { ARRAY => dbg!(ARRAY), _ => panic!("whoops"), };
35 | ^^^^^
36
37error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 38 --> $DIR/reject_non_structural.rs:65:33
f9f354fc
XL
39 |
40LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
41 | ^^^^^^
42
43error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 44 --> $DIR/reject_non_structural.rs:65:33
f9f354fc
XL
45 |
46LL | match [Some(NoDerive); 2] { REPEAT => dbg!(REPEAT), _ => panic!("whoops"), };
47 | ^^^^^^
48
49error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 50 --> $DIR/reject_non_structural.rs:71:28
f9f354fc
XL
51 |
52LL | match Some(NoDerive) { NoDerive::ASSOC => dbg!(NoDerive::ASSOC), _ => panic!("whoops"), };
53 | ^^^^^^^^^^^^^^^
54
55error: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 56 --> $DIR/reject_non_structural.rs:75:28
f9f354fc
XL
57 |
58LL | match Some(NoDerive) { BLOCK => dbg!(BLOCK), _ => panic!("whoops"), };
59 | ^^^^^
60
61warning: to use a constant of type `NoDerive` in a pattern, `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
1b1a35ee 62 --> $DIR/reject_non_structural.rs:79:29
f9f354fc
XL
63 |
64LL | match &Some(NoDerive) { ADDR_OF => dbg!(ADDR_OF), _ => panic!("whoops"), };
65 | ^^^^^^^
66 |
2b03887a
FG
67 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
68 = note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411>
f9f354fc
XL
69note: the lint level is defined here
70 --> $DIR/reject_non_structural.rs:12:9
71 |
72LL | #![warn(indirect_structural_match)]
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^
f9f354fc 74
1b1a35ee 75error: aborting due to 10 previous errors; 1 warning emitted
f9f354fc 76