]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-rc.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / no_send-rc.rs
1 use std::rc::Rc;
2
3 fn bar<T: Send>(_: T) {}
4
5 fn main() {
6     let x = Rc::new(5);
7     bar(x);
8     //~^ ERROR `Rc<{integer}>` cannot be sent between threads safely
9 }