forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#126236 - Bryanskiy:delegation-no-entry-ice-2, r=petrochenkov Delegation: fix ICE on recursive delegation fixes rust-lang#124347 r? `@petrochenkov`
- Loading branch information
Showing
4 changed files
with
29 additions
and
5 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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
#![feature(fn_delegation)] | ||
#![allow(incomplete_features)] | ||
|
||
trait Trait { | ||
reuse Trait::foo { &self.0 } | ||
//~^ ERROR recursive delegation is not supported yet | ||
} | ||
|
||
reuse foo; | ||
//~^ ERROR recursive delegation is not supported yet | ||
|
||
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: recursive delegation is not supported yet | ||
--> $DIR/ice-issue-124347.rs:5:18 | ||
| | ||
LL | reuse Trait::foo { &self.0 } | ||
| ^^^ callee defined here | ||
|
||
error: recursive delegation is not supported yet | ||
--> $DIR/ice-issue-124347.rs:9:7 | ||
| | ||
LL | reuse foo; | ||
| ^^^ callee defined here | ||
|
||
error: aborting due to 2 previous errors | ||
|