-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fallback
default
to None
during parse late-bound lifetime
- Loading branch information
Showing
5 changed files
with
44 additions
and
3 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
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,8 @@ | ||
#![allow(incomplete_features)] | ||
#![feature(non_lifetime_binders)] | ||
|
||
type T = dyn for<V = A(&())> Fn(()); | ||
//~^ ERROR default parameter is not allowed in this binder | ||
//~| ERROR late-bound type parameter not allowed on trait object types | ||
|
||
fn main() {} |
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,14 @@ | ||
error: default parameter is not allowed in this binder | ||
--> $DIR/issue-118697.rs:4:22 | ||
| | ||
LL | type T = dyn for<V = A(&())> Fn(()); | ||
| ^^^^^^ | ||
|
||
error: late-bound type parameter not allowed on trait object types | ||
--> $DIR/issue-118697.rs:4:18 | ||
| | ||
LL | type T = dyn for<V = A(&())> Fn(()); | ||
| ^ | ||
|
||
error: aborting due to 2 previous errors | ||
|