use defkind.descr in wrong namespace resolve failure

This commit is contained in:
YI 2020-04-26 10:28:33 +08:00
parent bb1eedb026
commit eb8a7031ef
3 changed files with 24 additions and 21 deletions

View file

@ -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`
}

View file

@ -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