]> git.lizzy.rs Git - rust.git/blob - tests/ui/kindck/kindck-send-unsafe.rs~rust-lang_master
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / kindck / kindck-send-unsafe.rs~rust-lang_master
1 fn assert_send<T:Send>() { }
2
3 // unsafe ptrs are ok unless they point at unsendable things
4 fn test70() {
5     assert_send::<*mut int>();
6 }
7 fn test71<'a>() {
8     assert_send::<*mut &'a int>(); //~ ERROR does not fulfill the required lifetime
9 }
10
11 fn main() {
12 }