use defkind.descr in wrong namespace resolve failure
This commit is contained in:
parent
bb1eedb026
commit
eb8a7031ef
3 changed files with 24 additions and 21 deletions
|
|
@ -2,5 +2,5 @@ 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
|
||||
//~^ ERROR expected type, found function `channel` in `mpsc`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error[E0433]: failed to resolve: `channel` in `mpsc` is a concrete value, not a module or Struct you specified
|
||||
error[E0433]: failed to resolve: expected type, found function `channel` in `mpsc`
|
||||
--> $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
|
||||
| ^^^^^^^ expected type, found function `channel` in `mpsc`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue