forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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#58931 - estebank:elide-receiver-tyerr, r=va…
…rkor Elide invalid method receiver error when it contains TyErr Fix rust-lang#58712.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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,15 @@ | ||
struct AddrVec<H, A> { | ||
h: H, | ||
a: A, | ||
} | ||
|
||
impl<H> AddrVec<H, DeviceId> { | ||
//~^ ERROR cannot find type `DeviceId` in this scope | ||
pub fn device(&self) -> DeviceId { | ||
//~^ ERROR cannot find type `DeviceId` in this scope | ||
self.tail() | ||
} | ||
} | ||
|
||
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,15 @@ | ||
error[E0412]: cannot find type `DeviceId` in this scope | ||
--> $DIR/issue-58712.rs:6:20 | ||
| | ||
LL | impl<H> AddrVec<H, DeviceId> { | ||
| ^^^^^^^^ not found in this scope | ||
|
||
error[E0412]: cannot find type `DeviceId` in this scope | ||
--> $DIR/issue-58712.rs:8:29 | ||
| | ||
LL | pub fn device(&self) -> DeviceId { | ||
| ^^^^^^^^ not found in this scope | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0412`. |