-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay a span bug if we see ty/const generic params during writeback
- Loading branch information
1 parent
74f600b
commit 01db8b6
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![feature(closure_lifetime_binder)] | ||
|
||
fn main() { | ||
for<const N: i32> || -> () {}; | ||
//~^ ERROR only lifetime parameters can be used in this context | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: only lifetime parameters can be used in this context | ||
--> $DIR/disallow-const.rs:4:15 | ||
| | ||
LL | for<const N: i32> || -> () {}; | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![feature(closure_lifetime_binder)] | ||
|
||
fn main() { | ||
for<T> || -> () {}; | ||
//~^ ERROR only lifetime parameters can be used in this context | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: only lifetime parameters can be used in this context | ||
--> $DIR/disallow-ty.rs:4:9 | ||
| | ||
LL | for<T> || -> () {}; | ||
| ^ | ||
|
||
error: aborting due to previous error | ||
|