]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12041.rs
Enable full revision in const generics ui tests
[rust.git] / src / test / ui / issues / issue-12041.rs
1 use std::sync::mpsc::channel;
2 use std::thread;
3
4 fn main() {
5     let (tx, rx) = channel();
6     let _t = thread::spawn(move|| -> () {
7         loop {
8             let tx = tx;
9             //~^ ERROR: use of moved value: `tx`
10             tx.send(1);
11         }
12     });
13 }