-
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.
add message for resolution failure because wrong namespace
- Loading branch information
Showing
3 changed files
with
95 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use std::sync::mpsc; | ||
|
||
fn main() { | ||
let (tx, rx) = mpsc::channel::new(1); | ||
//~^ ERROR `channel` in `mpsc` is a concrete value, not a module or Struct you specified | ||
} |
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,9 @@ | ||
error[E0433]: failed to resolve: `channel` in `mpsc` is a concrete value, not a module or Struct you specified | ||
--> $DIR/issue-71406.rs:4:26 | ||
| | ||
LL | let (tx, rx) = mpsc::channel::new(1); | ||
| ^^^^^^^ `channel` in `mpsc` is a concrete value, not a module or Struct you specified | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0433`. |