11error[E0697]: closures cannot be static
2- --> $DIR/exhaustive.rs:209 :9
2+ --> $DIR/exhaustive.rs:210 :9
33 |
44LL | static || value;
55 | ^^^^^^^^^
66
77error[E0697]: closures cannot be static
8- --> $DIR/exhaustive.rs:210 :9
8+ --> $DIR/exhaustive.rs:211 :9
99 |
1010LL | static move || value;
1111 | ^^^^^^^^^^^^^^
1212
1313error[E0728]: `await` is only allowed inside `async` functions and blocks
14- --> $DIR/exhaustive.rs:239 :13
14+ --> $DIR/exhaustive.rs:240 :13
1515 |
1616LL | fn expr_await() {
1717 | --------------- this is not `async`
@@ -20,19 +20,19 @@ LL | fut.await;
2020 | ^^^^^ only allowed inside `async` functions and blocks
2121
2222error: in expressions, `_` can only be used on the left-hand side of an assignment
23- --> $DIR/exhaustive.rs:288 :9
23+ --> $DIR/exhaustive.rs:289 :9
2424 |
2525LL | _;
2626 | ^ `_` not allowed here
2727
2828error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
29- --> $DIR/exhaustive.rs:298 :9
29+ --> $DIR/exhaustive.rs:299 :9
3030 |
3131LL | x::();
3232 | ^^^^^ only `Fn` traits may use parentheses
3333
3434error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
35- --> $DIR/exhaustive.rs:299 :9
35+ --> $DIR/exhaustive.rs:300 :9
3636 |
3737LL | x::(T, T) -> T;
3838 | ^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
@@ -44,31 +44,31 @@ LL + x::<T, T> -> T;
4444 |
4545
4646error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
47- --> $DIR/exhaustive.rs:300 :9
47+ --> $DIR/exhaustive.rs:301 :9
4848 |
4949LL | crate::() -> ()::expressions::() -> ()::expr_path;
5050 | ^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
5151
5252error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
53- --> $DIR/exhaustive.rs:300 :26
53+ --> $DIR/exhaustive.rs:301 :26
5454 |
5555LL | crate::() -> ()::expressions::() -> ()::expr_path;
5656 | ^^^^^^^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
5757
5858error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
59- --> $DIR/exhaustive.rs:303 :9
59+ --> $DIR/exhaustive.rs:304 :9
6060 |
6161LL | core::()::marker::()::PhantomData;
6262 | ^^^^^^^^ only `Fn` traits may use parentheses
6363
6464error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
65- --> $DIR/exhaustive.rs:303 :19
65+ --> $DIR/exhaustive.rs:304 :19
6666 |
6767LL | core::()::marker::()::PhantomData;
6868 | ^^^^^^^^^^ only `Fn` traits may use parentheses
6969
7070error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
71- --> $DIR/exhaustive.rs:390 :9
71+ --> $DIR/exhaustive.rs:391 :9
7272 |
7373LL | yield;
7474 | ^^^^^
@@ -79,29 +79,29 @@ LL | #[coroutine] fn expr_yield() {
7979 | ++++++++++++
8080
8181error[E0703]: invalid ABI: found `C++`
82- --> $DIR/exhaustive.rs:470 :23
82+ --> $DIR/exhaustive.rs:471 :23
8383 |
8484LL | unsafe extern "C++" {}
8585 | ^^^^^ invalid ABI
8686 |
8787 = note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
8888
8989error: `..` patterns are not allowed here
90- --> $DIR/exhaustive.rs:677 :13
90+ --> $DIR/exhaustive.rs:678 :13
9191 |
9292LL | let ..;
9393 | ^^
9494 |
9595 = note: only allowed in tuple, tuple struct, and slice patterns
9696
9797error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
98- --> $DIR/exhaustive.rs:792 :16
98+ --> $DIR/exhaustive.rs:793 :16
9999 |
100100LL | let _: T() -> !;
101101 | ^^^^^^^^ only `Fn` traits may use parentheses
102102
103103error[E0562]: `impl Trait` is not allowed in the type of variable bindings
104- --> $DIR/exhaustive.rs:806 :16
104+ --> $DIR/exhaustive.rs:807 :16
105105 |
106106LL | let _: impl Send;
107107 | ^^^^^^^^^
@@ -112,7 +112,7 @@ LL | let _: impl Send;
112112 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
113113
114114error[E0562]: `impl Trait` is not allowed in the type of variable bindings
115- --> $DIR/exhaustive.rs:807 :16
115+ --> $DIR/exhaustive.rs:808 :16
116116 |
117117LL | let _: impl Send + 'static;
118118 | ^^^^^^^^^^^^^^^^^^^
@@ -123,7 +123,7 @@ LL | let _: impl Send + 'static;
123123 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
124124
125125error[E0562]: `impl Trait` is not allowed in the type of variable bindings
126- --> $DIR/exhaustive.rs:808 :16
126+ --> $DIR/exhaustive.rs:809 :16
127127 |
128128LL | let _: impl 'static + Send;
129129 | ^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | let _: impl 'static + Send;
134134 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
135135
136136error[E0562]: `impl Trait` is not allowed in the type of variable bindings
137- --> $DIR/exhaustive.rs:809 :16
137+ --> $DIR/exhaustive.rs:810 :16
138138 |
139139LL | let _: impl ?Sized;
140140 | ^^^^^^^^^^^
@@ -145,7 +145,7 @@ LL | let _: impl ?Sized;
145145 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
146146
147147error[E0562]: `impl Trait` is not allowed in the type of variable bindings
148- --> $DIR/exhaustive.rs:810 :16
148+ --> $DIR/exhaustive.rs:811 :16
149149 |
150150LL | let _: impl [const] Clone;
151151 | ^^^^^^^^^^^^^^^^^^
@@ -156,7 +156,7 @@ LL | let _: impl [const] Clone;
156156 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
157157
158158error[E0562]: `impl Trait` is not allowed in the type of variable bindings
159- --> $DIR/exhaustive.rs:811 :16
159+ --> $DIR/exhaustive.rs:812 :16
160160 |
161161LL | let _: impl for<'a> Send;
162162 | ^^^^^^^^^^^^^^^^^
0 commit comments