]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-non_exhaustive_omitted_patterns_lint.stderr
CommitLineData
5e7ed085
FG
1warning: unknown lint: `non_exhaustive_omitted_patterns`
2 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
c295e0f8
XL
3 |
4LL | #![deny(non_exhaustive_omitted_patterns)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
5e7ed085 7 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
8 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
9 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
2b03887a 10 = note: `#[warn(unknown_lints)]` on by default
c295e0f8 11
5e7ed085
FG
12warning: unknown lint: `non_exhaustive_omitted_patterns`
13 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
c295e0f8
XL
14 |
15LL | #![allow(non_exhaustive_omitted_patterns)]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 |
5e7ed085 18 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
19 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
20 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
21
5e7ed085
FG
22warning: unknown lint: `non_exhaustive_omitted_patterns`
23 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
c295e0f8
XL
24 |
25LL | #[allow(non_exhaustive_omitted_patterns)]
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 |
5e7ed085 28 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
29 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
30 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
31
5e7ed085
FG
32warning: unknown lint: `non_exhaustive_omitted_patterns`
33 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
c295e0f8
XL
34 |
35LL | #[allow(non_exhaustive_omitted_patterns)]
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 |
5e7ed085 38 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
39 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
40 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
41
5e7ed085
FG
42warning: unknown lint: `non_exhaustive_omitted_patterns`
43 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
c295e0f8
XL
44 |
45LL | #[warn(non_exhaustive_omitted_patterns)]
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 |
5e7ed085 48 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
49 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
50 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
51
5e7ed085
FG
52warning: unknown lint: `non_exhaustive_omitted_patterns`
53 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
c295e0f8
XL
54 |
55LL | #![deny(non_exhaustive_omitted_patterns)]
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 |
5e7ed085 58 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
59 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
60 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
61
5e7ed085
FG
62warning: unknown lint: `non_exhaustive_omitted_patterns`
63 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
c295e0f8
XL
64 |
65LL | #![allow(non_exhaustive_omitted_patterns)]
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 |
5e7ed085 68 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
69 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
70 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
71
5e7ed085
FG
72warning: unknown lint: `non_exhaustive_omitted_patterns`
73 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
c295e0f8
XL
74 |
75LL | #[allow(non_exhaustive_omitted_patterns)]
76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 |
5e7ed085 78 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
79 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
80 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
81
5e7ed085
FG
82warning: unknown lint: `non_exhaustive_omitted_patterns`
83 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
c295e0f8
XL
84 |
85LL | #[allow(non_exhaustive_omitted_patterns)]
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 |
5e7ed085 88 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
89 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
90 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
91
5e7ed085
FG
92warning: unknown lint: `non_exhaustive_omitted_patterns`
93 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
c295e0f8
XL
94 |
95LL | #[warn(non_exhaustive_omitted_patterns)]
96 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 |
5e7ed085 98 = note: the `non_exhaustive_omitted_patterns` lint is unstable
c295e0f8
XL
99 = note: see issue #89554 <https://github.com/rust-lang/rust/issues/89554> for more information
100 = help: add `#![feature(non_exhaustive_omitted_patterns_lint)]` to the crate attributes to enable
101
f2b60f7d 102error[E0004]: non-exhaustive patterns: `Foo::C` not covered
5e7ed085
FG
103 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11
104 |
105LL | match Foo::A {
f2b60f7d 106 | ^^^^^^ pattern `Foo::C` not covered
5e7ed085
FG
107 |
108note: `Foo` defined here
109 --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15
110 |
111LL | enum Foo {
112 | ---
113LL | A, B, C,
114 | ^ not covered
115 = note: the matched value is of type `Foo`
116help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
117 |
118LL ~ Foo::B => {}
f2b60f7d 119LL + Foo::C => todo!()
5e7ed085
FG
120 |
121
122error: aborting due to previous error; 10 warnings emitted
c295e0f8 123
5e7ed085 124For more information about this error, try `rustc --explain E0004`.