rust/tests/ui/rfcs/rfc-0000-never_patterns/bindings.stderr

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

51 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-01-05 03:11:18 -06:00
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:17:15
2024-01-05 03:08:47 -06:00
|
2024-01-05 03:11:18 -06:00
LL | Err(&(_a, _b, !)),
| ^^ help: use a wildcard `_` instead
2024-01-05 03:08:47 -06:00
2024-01-05 03:11:18 -06:00
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:17:19
2024-01-05 03:08:47 -06:00
|
2024-01-05 03:11:18 -06:00
LL | Err(&(_a, _b, !)),
| ^^ help: use a wildcard `_` instead
2024-01-05 03:08:47 -06:00
2024-01-05 03:11:18 -06:00
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:22:25
2024-01-05 03:08:47 -06:00
|
LL | Ok(_ok) | Err(&(_a, _b, !)) => {}
2024-01-05 03:11:18 -06:00
| ^^ help: use a wildcard `_` instead
2024-01-05 03:08:47 -06:00
2024-01-05 03:11:18 -06:00
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:22:29
2024-01-05 03:08:47 -06:00
|
LL | Ok(_ok) | Err(&(_a, _b, !)) => {}
2024-01-05 03:11:18 -06:00
| ^^ help: use a wildcard `_` instead
2024-01-05 03:08:47 -06:00
2024-01-10 15:08:53 -06:00
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:35:10
2024-01-10 15:08:53 -06:00
|
LL | let (_a, (! | !)) = (true, void);
| ^^ help: use a wildcard `_` instead
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:39:9
2024-01-10 15:08:53 -06:00
|
LL | let _a @ ! = void;
| ^^ help: use a wildcard `_` instead
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:42:10
2024-01-10 15:08:53 -06:00
|
LL | let (_a @ (), !) = ((), void);
| ^^ help: use a wildcard `_` instead
error: never patterns cannot contain variable bindings
--> $DIR/bindings.rs:45:14
2024-01-10 15:08:53 -06:00
|
LL | (_b @ (_, !))) = (true, void);
| ^^ help: use a wildcard `_` instead
error: aborting due to 8 previous errors
2024-01-05 03:08:47 -06:00