forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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#126234 - Bryanskiy:delegation-no-entry-ice, r=petrochenkov Delegation: fix ICE on late diagnostics fixes rust-lang#124342
- Loading branch information
Showing
4 changed files
with
37 additions
and
8 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)] | ||
|
||
mod to_reuse {} | ||
|
||
trait Trait { | ||
reuse to_reuse::foo { foo } | ||
//~^ ERROR cannot find function `foo` in module `to_reuse` | ||
//~| ERROR cannot find value `foo` in this scope | ||
} | ||
|
||
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,20 @@ | ||
error[E0425]: cannot find function `foo` in module `to_reuse` | ||
--> $DIR/ice-issue-124342.rs:7:21 | ||
| | ||
LL | reuse to_reuse::foo { foo } | ||
| ^^^ not found in `to_reuse` | ||
|
||
error[E0425]: cannot find value `foo` in this scope | ||
--> $DIR/ice-issue-124342.rs:7:27 | ||
| | ||
LL | reuse to_reuse::foo { foo } | ||
| ^^^ | ||
| | ||
help: you might have meant to refer to the associated function | ||
| | ||
LL | reuse to_reuse::foo { Self::foo } | ||
| ++++++ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0425`. |