-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop feed vis when cant access for trait item
- Loading branch information
Showing
4 changed files
with
38 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,3 @@ | ||
trait PrivateTrait { | ||
const FOO: usize; | ||
} |
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,11 @@ | ||
// aux-build:issue-119463-extern.rs | ||
|
||
extern crate issue_119463_extern; | ||
|
||
struct S; | ||
|
||
impl issue_119463_extern::PrivateTrait for S { //~ ERROR: trait `PrivateTrait` is private | ||
const FOO: usize = 1; | ||
} | ||
|
||
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[E0603]: trait `PrivateTrait` is private | ||
--> $DIR/issue-119463.rs:7:27 | ||
| | ||
LL | impl issue_119463_extern::PrivateTrait for S { | ||
| ^^^^^^^^^^^^ private trait | ||
| | ||
note: the trait `PrivateTrait` is defined here | ||
--> $DIR/auxiliary/issue-119463-extern.rs:1:1 | ||
| | ||
LL | trait PrivateTrait { | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0603`. |