2025-08-20 14:03:03 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/71406
|
2020-04-22 15:33:34 +08:00
|
|
|
use std::sync::mpsc;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let (tx, rx) = mpsc::channel::new(1);
|
2020-04-26 10:28:33 +08:00
|
|
|
//~^ ERROR expected type, found function `channel` in `mpsc`
|
2020-04-22 15:33:34 +08:00
|
|
|
}
|