rust/tests/ui/feature-gates/feature-gate-never_patterns.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

115 lines
4.0 KiB
Plaintext
Raw Normal View History

error: unexpected `,` in pattern
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:33:16
|
LL | Some(_),
| ^
|
help: try adding parentheses to match on a tuple...
|
LL | (Some(_),)
| + +
help: ...or a vertical bar to match on multiple alternatives
|
LL | Some(_) |
|
2023-11-22 01:30:43 +00:00
error[E0658]: `!` patterns are experimental
--> $DIR/feature-gate-never_patterns.rs:8:24
|
LL | let (Ok(_x) | Err(&!)) = res.as_ref();
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2023-11-22 01:30:43 +00:00
error[E0658]: `!` patterns are experimental
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:14:13
2023-11-22 01:30:43 +00:00
|
2023-11-27 03:08:09 +00:00
LL | !
2023-11-22 01:30:43 +00:00
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2023-11-22 01:30:43 +00:00
error[E0658]: `!` patterns are experimental
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:20:13
|
LL | !
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: `!` patterns are experimental
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:25:13
2023-11-22 01:30:43 +00:00
|
LL | ! => {}
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2023-11-22 01:30:43 +00:00
error: `match` arm with no body
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:38:9
|
LL | Some(_)
| ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
error: `match` arm with no body
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:43:9
|
LL | Some(_) if false,
| ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
error: `match` arm with no body
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:45:9
|
LL | Some(_) if false
| ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
error[E0658]: `!` patterns are experimental
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:50:13
|
LL | Err(!),
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0658]: `!` patterns are experimental
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:54:13
|
LL | Err(!) if false,
| ^
|
= note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
= help: add `#![feature(never_patterns)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error: `match` arm with no body
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:64:9
|
LL | Some(_)
| ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
error: `match` arm with no body
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:70:9
|
LL | Some(_) if false
| ^^^^^^^- help: add a body after the pattern: `=> todo!(),`
error: a guard on a never pattern will never be run
2024-01-05 09:11:18 +00:00
--> $DIR/feature-gate-never_patterns.rs:54:19
|
LL | Err(!) if false,
| ^^^^^ help: remove this guard
2024-01-05 09:11:18 +00:00
error: aborting due to 13 previous errors
2023-11-22 01:30:43 +00:00
2024-01-05 09:11:18 +00:00
For more information about this error, try `rustc --explain E0658`.