]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / feature-gates / feature-gate-non_exhaustive_omitted_patterns_lint.stderr
1 warning: unknown lint: `non_exhaustive_omitted_patterns`
2   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
3    |
4 LL | #![deny(non_exhaustive_omitted_patterns)]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
10    = note: `#[warn(unknown_lints)]` on by default
11
12 warning: unknown lint: `non_exhaustive_omitted_patterns`
13   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
14    |
15 LL | #![allow(non_exhaustive_omitted_patterns)]
16    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17    |
18    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
22 warning: unknown lint: `non_exhaustive_omitted_patterns`
23   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
24    |
25 LL |     #[allow(non_exhaustive_omitted_patterns)]
26    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27    |
28    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
32 warning: unknown lint: `non_exhaustive_omitted_patterns`
33   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
34    |
35 LL |     #[allow(non_exhaustive_omitted_patterns)]
36    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37    |
38    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
42 warning: unknown lint: `non_exhaustive_omitted_patterns`
43   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
44    |
45 LL |         #[warn(non_exhaustive_omitted_patterns)]
46    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47    |
48    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
52 warning: unknown lint: `non_exhaustive_omitted_patterns`
53   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:3:1
54    |
55 LL | #![deny(non_exhaustive_omitted_patterns)]
56    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57    |
58    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
62 warning: unknown lint: `non_exhaustive_omitted_patterns`
63   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:6:1
64    |
65 LL | #![allow(non_exhaustive_omitted_patterns)]
66    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67    |
68    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
72 warning: unknown lint: `non_exhaustive_omitted_patterns`
73   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
74    |
75 LL |     #[allow(non_exhaustive_omitted_patterns)]
76    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77    |
78    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
82 warning: unknown lint: `non_exhaustive_omitted_patterns`
83   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:15:5
84    |
85 LL |     #[allow(non_exhaustive_omitted_patterns)]
86    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87    |
88    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
92 warning: unknown lint: `non_exhaustive_omitted_patterns`
93   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:29:9
94    |
95 LL |         #[warn(non_exhaustive_omitted_patterns)]
96    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97    |
98    = note: the `non_exhaustive_omitted_patterns` lint is unstable
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
102 error[E0004]: non-exhaustive patterns: `Foo::C` not covered
103   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:20:11
104    |
105 LL |     match Foo::A {
106    |           ^^^^^^ pattern `Foo::C` not covered
107    |
108 note: `Foo` defined here
109   --> $DIR/feature-gate-non_exhaustive_omitted_patterns_lint.rs:12:15
110    |
111 LL |     enum Foo {
112    |          ---
113 LL |         A, B, C,
114    |               ^ not covered
115    = note: the matched value is of type `Foo`
116 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
117    |
118 LL ~         Foo::B => {}
119 LL +         Foo::C => todo!()
120    |
121
122 error: aborting due to previous error; 10 warnings emitted
123
124 For more information about this error, try `rustc --explain E0004`.